Skip to content

Commit

Permalink
👷 add CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonMao committed Aug 12, 2023
1 parent d181394 commit cd0a684
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Continuous Integration

on:
pull_request:
branches: '**'

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3

- name: 🔧 Install dependencies
run: pnpm install --frozen-lockfile

- name: 🧪 Test Coverage
run: pnpm test:coverage

- name: 📈 Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/clover.xml
fail_ci_if_error: true

0 comments on commit cd0a684

Please sign in to comment.