forked from rumos-io/gears
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (34 loc) · 1.01 KB
/
run_tests.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: Run tests
on:
# Run on any PR
pull_request:
jobs:
build_artifacts:
runs-on: ubuntu-latest
steps:
- name: Checkout # Clone git repository
uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install -y llvm clang libclang-dev build-essential libhidapi-dev libudev-dev
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Build artifacts
uses: cargo test --no-run --features=it
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ubuntu-latest-heaven
path: target/release/heaven
tests:
runs-on: ubuntu-latest
needs: build_artifacts
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: ubuntu-latest-heaven
path: artifacts/ubuntu
- name: Execute tests
run: cargo test --features=it --no-fail-fast