Merge pull request #274 from krudi/dependabot/npm_and_yarn/eslint/js-… #137
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: Run linting commands | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
- '!dependabot/**' | |
pull_request: | |
branches: | |
- develop | |
- main | |
- '!dependabot/**' | |
jobs: | |
build: | |
name: Build and start Node.js project | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: | |
- '20.11.0' | |
command: | |
- 'lint:js' | |
- 'lint:css' | |
- 'lint:files' | |
steps: | |
- name: Checkout the current branch | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '${{ matrix.node-version }}' | |
cache: npm | |
- name: Install dependencies in the project | |
run: npm install | |
- name: Run Node linting commands | |
run: 'npm run ${{ matrix.command }}' |