chore(deps): upgrade to using Node 22 #385
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: Node CI | |
on: | |
push: | |
paths-ignore: | |
- "docs/**" | |
- README.md | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22 | |
- name: Get cached dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm install | |
- name: Lint code | |
run: npm run lint:check | |
- name: Compile | |
run: npm run compile | |
# Use unit rather than `test` command, to skip the pretest step, otherwise | |
# that would duplicate the steps above. | |
- name: Unit tests (without coverage report) | |
run: npm run test:unit | |
env: | |
CI: true |