-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.29 KB
/
ci.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions: read-all
jobs:
lint-and-test:
name: Lint and Test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: yarn
- name: Install deps
run: yarn install --frozen-lockfile
- uses: pre-commit/[email protected]
env:
RAINDROP_API_TOKEN: ${{ secrets.RAINDROP_API_TOKEN }}
# NOTE: Disabled for reason: manual intervention & update on codes are required
# - uses: pre-commit-ci/[email protected]
# if: always()
- name: Try build
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: yarn run build
- name: Upload test results to codecov
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: junit.xml,typecheck.junit.xml
- name: Upload coverage report
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: coverage/clover.xml