forked from linkerd/linkerd2
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (56 loc) · 1.98 KB
/
codecov.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Coverage
# Run weekly on Sunday at midnight (UTC).
on:
schedule:
- cron: '0 0 * * 0'
permissions:
contents: read
jobs:
go:
name: Go
timeout-minutes: 30
runs-on: ubuntu-20.04
container:
image: golang:1.16.4
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- run: go get gotest.tools/[email protected]
- run: gotestsum -- -cover -coverprofile=coverage.out -v -mod=readonly ./...
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b
with:
files: ./coverage.out
flags: unittests,golang
js:
name: JS
timeout-minutes: 30
runs-on: ubuntu-20.04
container:
image: node:14-stretch
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- name: Yarn setup
run: curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.21.1 --network-concurrency 1
- name: Unit tests
run: |
export PATH="$HOME/.yarn/bin:$PATH"
export NODE_ENV=test
bin/web --frozen-lockfile
bin/web test --reporters="jest-progress-bar-reporter" --reporters="./gh_ann_reporter.js" --coverage
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b
with:
directory: ./web/app/coverage
flags: unittests,javascript
rust:
name: Rust
runs-on: ubuntu-latest
timeout-minutes: 15
container:
image: docker://rust:1.56.0
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- run: mkdir -p target && cd target && curl -vsL https://github.com/xd009642/tarpaulin/releases/download/0.18.0/cargo-tarpaulin-0.18.0-travis.tar.gz | tar zxvf - && chmod 755 cargo-tarpaulin
- run: target/cargo-tarpaulin tarpaulin --workspace --out Xml
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b
with:
flags: unittests,rust