Merge pull request #323 from vrk-kpa/REKDAT-309_fix-paha-auth-endpoint #1340
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Lint | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
ruff: | |
name: ruff | |
runs-on: ubuntu-latest | |
container: python:3.11 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install requirements | |
run: | | |
pip install ruff | |
- name: Run ruff | |
run: | | |
ruff check --output-format=github ckan | |
stylelint: | |
name: stylelint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
cache-dependency-path: 'package-lock.json' | |
- name: Authenticate npm registry | |
run: | | |
cat <<EOT >> .npmrc | |
@fortawesome:registry=https://npm.fontawesome.com/ | |
//npm.fontawesome.com/:_authToken=$NPM_TOKEN | |
EOT | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: install npm packages | |
run: npm ci | |
- name: run stylelint | |
run: npx stylelint "src/scss" -f github | |
working-directory: ./assets |