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 b75061d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI workflow

on:
pull_request:
branches: '**'

jobs:
test:
runs-on: ubuntu-latest

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

- name: ⚙️ Setup PNPM
uses: pnpm/[email protected]

- 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 b75061d

Please sign in to comment.