1.10.0 #297
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: Unit tests | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
jobs: | |
unit_tests: | |
name: 'Node ${{ matrix.node-version }}' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
node-version: ['18', '20'] | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Set up node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Install dependencies | |
run: npm install | |
- name: Install jschema dependencies | |
run: | | |
cd jschema | |
npm install | |
- name: Run vitest tests on jschema module | |
run: | | |
cd jschema | |
npm run test | |
- name: Run vitest tests | |
run: npx vitest run | |
env: | |
TZ: Europe/Rome | |
LANG: it-IT |