4 changed files with 50 additions and 5 deletions
@ -0,0 +1,34 @@ |
|||||
|
name: CI |
||||
|
|
||||
|
on: |
||||
|
push: |
||||
|
branches: [main] |
||||
|
pull_request: |
||||
|
branches: [main] |
||||
|
|
||||
|
jobs: |
||||
|
test: |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- uses: actions/checkout@v3 |
||||
|
|
||||
|
- uses: pnpm/action-setup@v2 |
||||
|
with: |
||||
|
version: 8 |
||||
|
|
||||
|
- uses: actions/setup-node@v3 |
||||
|
with: |
||||
|
node-version: 20 |
||||
|
cache: 'pnpm' |
||||
|
|
||||
|
- name: Install dependencies |
||||
|
run: pnpm install |
||||
|
|
||||
|
- name: Run tests |
||||
|
run: pnpm test |
||||
|
|
||||
|
- name: Check coverage |
||||
|
run: pnpm run coverage |
||||
|
|
||||
|
- name: Build packages |
||||
|
run: pnpm build |
Loading…
Reference in new issue