Skip to content

Setup tests

Setup tests #6

Workflow file for this run

name: Code analysis
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
jobs:
vitest:
runs-on: ubuntu-latest
name: Vitest and RTL tests
strategy:
matrix:
node-version: [21.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm install
- name: Run tests
run: CI=true npm run test-coverage