generated from react18-tools/turborepo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (32 loc) · 883 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 8 * * *"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i -g pnpm && pnpm i
name: Install dependencies
- name: Run unit tests
run: pnpm test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
directory: ./packages/persist-and-sync
token: ${{ secrets.CODECOV_TOKEN }}
flags: fork-me
- uses: paambaati/codeclimate-action@v5.0.0
continue-on-error: true
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: ./packages/persist-and-sync/coverage/*.xml:clover