Sync the test workflow with the example. #206
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: Lint | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'trunk' | |
| - 'releases/*' | |
| jobs: | |
| # Runs the linters. | |
| # | |
| # Performs the following steps: | |
| # - Checks out the repository. | |
| # - Sets up Node.js. | |
| # - Installs npm dependencies. | |
| # - Runs the linters. | |
| lint: | |
| name: Run Linters | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run linters | |
| run: npm run lint |