CI: Test reusable actions #2
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: 'Run tests' | |
on: [push, workflow_dispatch] | |
jobs: | |
type-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
# TODO: add version to a .nvmrc or at least a variable | |
node-version: 18.12.1 | |
cache: npm | |
- name: Install | |
run: npm ci --prefer-offline | |
- name: Type check | |
run: npm run type-check |