Use Node v20 for CI/CD #11
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: CI | |
on: | |
pull_request: | |
paths: | |
- '**.json' | |
- '**.js' | |
- '**.ts' | |
push: | |
branches: | |
- main | |
jobs: | |
eslint: | |
name: ESLint Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Node v20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
- name: Install Dependencies | |
run: npm ci | |
- name: ESLint | |
run: npx eslint --ext .ts web/ traffic/ |