Skip to content

fix: configure CI to skip integration tests and run only unit tests #1

fix: configure CI to skip integration tests and run only unit tests

fix: configure CI to skip integration tests and run only unit tests #1

Workflow file for this run

name: CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test:unit
- name: Build project
run: npm run build
- name: Upload test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-results-node-${{ matrix.node-version }}
path: coverage/