Merge pull request #151 from css-george/dependabot/github_actions/act… #284
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - '**/*.md' | |
| jobs: | |
| eslint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js latest | |
| uses: actions/setup-node@v6 | |
| with: | |
| cache: npm | |
| - name: npm install | |
| run: npm ci | |
| - name: eslint | |
| run: npm run lint | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| tools: linked | |
| languages: javascript, actions | |
| queries: security-and-quality | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js latest | |
| uses: actions/setup-node@v6 | |
| with: | |
| cache: npm | |
| - name: npm install and test | |
| run: npm cit | |
| env: | |
| CI: true |