-
Notifications
You must be signed in to change notification settings - Fork 22
61 lines (56 loc) · 1.68 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Availability-related actions.
name: CI
on:
push:
paths:
- "**.rs"
- "**.yaml"
- "**.yml"
- "**.toml"
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 0' # Sunday
jobs:
# Depends on all actions that are required for a "successful" CI run.
ci:
name: CI
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-ci-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-ci-${{ env.cache-name }}-
${{ runner.os }}-cargo-ci-
- name: Check
uses: actions-rs/cargo@v1
with:
command: check
args: --all-features --workspace --exclude sentinel-envoy-module --exclude ebpf-probes --exclude ebpf-userspace
- name: Unit Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --workspace --exclude sentinel-envoy-module --exclude ebpf-probes --exclude ebpf-userspace -- --nocapture
- name: Ignored Unit Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --workspace --exclude sentinel-envoy-module --exclude ebpf-probes --exclude ebpf-userspace -- --ignored --test-threads=1 --nocapture