Skip to content

Commit

Permalink
ci(test): add test scripts to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
enylin committed May 23, 2024
1 parent 84c5022 commit 27ccdfe
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run tests

on:
push:
branches:
- main
- v2

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install dependencies
run: npm install

- name: Test
run: npm run test:cov

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 27ccdfe

Please sign in to comment.