Skip to content

Feature/36 add integration and unit tests #3

Feature/36 add integration and unit tests

Feature/36 add integration and unit tests #3

Workflow file for this run

name: Run tests
on:
push:
branches: ['main', 'develop']
pull_request:
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
branch:
- ${{ github.head_ref }}
- 'main'
steps:
- name: Checkout branch ${{ matrix.branch }}
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install deps
run: npm ci
- name: Run tests
run: npm run test:coverage
- name: 'Upload Coverage'
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.branch }}
path: coverage