Upgrade checkout/setup-node actions to v4 #132
Workflow file for this run
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: Test CI test | |
on: | |
pull_request: | |
paths: | |
- src/** | |
- public/** | |
- package*.json | |
- .github/workflows/ci_test.yml | |
types: [opened, reopened, synchronize, ready_for_review] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Check JSON syntax errors in translations via jq | |
run: jq . public/locales/*/translation.json > /dev/null | |
- name: Setup Node JS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run TypeScript typecheck | |
run: npm run typecheck | |
- name: Run linter | |
run: npm run lint | |
- name: Build | |
run: npm run build |