Merge pull request #311 from krudi/dependabot/npm_and_yarn/autoprefix… #210
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
name: Frontend linting and code quality checks | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
- '!dependabot/**' | |
pull_request: | |
branches: | |
- develop | |
- main | |
- '!dependabot/**' | |
jobs: | |
build: | |
name: Install dependencies and build projectapplication | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: | |
- '22.14.0' | |
command: | |
- 'lint:js' | |
- 'lint:css' | |
- 'lint:files' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '${{ matrix.node-version }}' | |
cache: npm | |
- name: Install Node.js dependencies | |
run: npm install | |
- name: Run linting command(s) | |
run: 'npm run ${{ matrix.command }}' |