Migrate CI from Travis to GitHub Actions #1
Workflow file for this run
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: ESLint Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'packages/eslint-config-humanmade/**' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - '.github/workflows/test-eslint.yml' | |
| pull_request: | |
| paths: | |
| - 'packages/eslint-config-humanmade/**' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - '.github/workflows/test-eslint.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: ESLint / Node ${{ matrix.node-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: | |
| - 20 | |
| - 22 | |
| - 24 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install root dependencies | |
| run: npm ci | |
| - name: Install ESLint package dependencies | |
| working-directory: packages/eslint-config-humanmade | |
| run: npm ci | |
| - name: Run ESLint tests | |
| run: npm run test:eslint |