Skip to content

Commit

Permalink
github actions: add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mildronize committed Jan 8, 2024
1 parent 79ef56f commit e4bf095
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ name: "Build & Test"

on:
push:
branches: [ main, dev ]
branches: [ main ]
paths-ignore:
- '**/*.md'
- '.github'
pull_request:
branches: [ main, dev ]
branches: [ main ]
paths-ignore:
- '**/*.md'
- '.github'

env:
pnpm_version: 7
pnpm_version: 8

jobs:
build:
Expand All @@ -22,7 +22,7 @@ jobs:

strategy:
matrix:
node-version: [16, 18]
node-version: [16, 18, 20]
os: [ubuntu-latest, windows-latest]

steps:
Expand All @@ -36,10 +36,8 @@ jobs:
with:
version: ${{ env.pnpm_version }}
- run: pnpm install
- run: npx nx run nammatham:build
- run: npx nx run nammatham:typecheck
- run: npx nx run nammatham:test
- run: npx nx run nammatham:test:coverage
- run: pnpm build
- run: pnpm test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit e4bf095

Please sign in to comment.