-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.35 KB
/
ci.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
35
36
37
38
39
40
41
42
43
44
name: Run Tests and Generate Coverage
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Run Jest tests
run: npm run test
env:
TEST_GITEE_TOKEN: ${{ secrets.TEST_GITEE_TOKEN }}
TEST_GITEE_OWNER: ${{ secrets.TEST_GITEE_OWNER }}
TEST_GITEE_REPO: ${{ secrets.TEST_GITEE_REPO }}
TEST_GITEE_NUMBER: ${{ secrets.TEST_GITEE_NUMBER }}
TEST_GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}
TEST_GITHUB_OWNER: ${{ secrets.TEST_GITHUB_OWNER }}
TEST_GITHUB_REPO: ${{ secrets.TEST_GITHUB_REPO }}
TEST_GITHUB_NUMBER: ${{ secrets.TEST_GITHUB_NUMBER }}
TEST_GITLAB_TOKEN: ${{ secrets.TEST_GITLAB_TOKEN }}
TEST_GITLAB_PROJECT_ID: ${{ secrets.TEST_GITLAB_PROJECT_ID }}
TEST_GITLAB_NUMBER: ${{ secrets.TEST_GITLAB_NUMBER }}
TEST_ENCRYPT_KEY: ${{ secrets.TEST_ENCRYPT_KEY }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}