Skip to content

ci: add tests + coverage workflow #1

ci: add tests + coverage workflow

ci: add tests + coverage workflow #1

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- name: Run tests
run: npm test
continue-on-error: true
- name: Coverage summary
if: always()
run: |
if [ -d coverage ]; then
ls coverage/
cat coverage/coverage-summary.json 2>/dev/null || true
fi
- uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-sdk-node
path: coverage/
retention-days: 30
if-no-files-found: ignore