Skip to content

Commit

Permalink
ci: Run coverage with GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nellh committed Nov 1, 2023
1 parent d0e6723 commit 5ef9972
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: TypeScript build CI

on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: yarn install
- run: yarn test --coverage
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3

0 comments on commit 5ef9972

Please sign in to comment.