forked from tremor-rs/tremor-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.59 KB
/
tests.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: Tests
on:
pull_request:
push:
branches:
- main
jobs:
tests-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install deps [Linux]
run: sudo apt-get -qy update && sudo apt-get install -y libssl-dev libssl1.1
- uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
- uses: Swatinem/rust-cache@v1
- name: Run tests and validate lockfile
env:
PROPTEST_CASES: 2500
RUSTFLAGS: -D warnings
run: cargo test --all --locked
- name: Run bin tests and validate lockfile
env:
PROPTEST_CASES: 2500
RUSTFLAGS: -D warnings
run: cargo test -p tremor-cli --bin tremor --all --locked
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install deps
run: sudo apt-get -qy update && sudo apt-get install -y libssl-dev libssl1.1
- uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
- uses: Swatinem/rust-cache@v1
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
env:
PROPTEST_CASES: 2500
RUSTFLAGS: -D warnings -C target-feature=+avx,+avx2,+sse4.2
with:
version: "0.16.0"
args: " --exclude-files target* tremor-cli tremor-api deprecated **/errors.rs --out Lcov --all"
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov.info