autoformat and test workflow #1
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
on: push | |
jobs: | |
test: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: false | |
- name: Install dependencies | |
run: npm install | |
- name: Check generated files are up to date | |
run: | | |
npm run generate | |
git diff --exit-code | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm run test:ci |