-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (47 loc) · 1.47 KB
/
main.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
45
46
47
name: Workflow for Codecov Action
on: [pull_request]
jobs:
run:
permissions: read-all
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Upload test results to Codecov (calculator)
uses: ./
with:
files: ./demo/calculator/junit.xml
flags: ${{ matrix.os }}
verbose: true
token: ${{ secrets.CODECOV_ORG_TOKEN }}
- name: Upload test results to Codecov (demo)
uses: ./
with:
files: ./demo/coverage-test/junit.xml
flags: ${{ matrix.os }}
verbose: true
token: ${{ secrets.CODECOV_ORG_TOKEN }}
- name: Upload test results to Codecov (calculator) (staging)
uses: ./
with:
files: ./demo/calculator/junit.xml
flags: ${{ matrix.os }}
verbose: true
url: ${{ secrets.CODECOV_STAGING_URL }}
token: ${{ secrets.CODECOV_ORG_TOKEN_STAGING }}
- name: Upload test results to Codecov (demo) (staging)
uses: ./
with:
url: ${{ secrets.CODECOV_STAGING_URL }}
token: ${{ secrets.CODECOV_ORG_TOKEN_STAGING }}
files: ./demo/coverage-test/junit.xml
flags: ${{ matrix.os }}
verbose: true