-
-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (31 loc) · 817 Bytes
/
test.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
permissions:
contents: read
on:
push:
branches: [main]
pull_request:
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: Test
jobs:
test_linux:
name: Test on Ubuntu
runs-on: ubuntu-latest
environment: dev
strategy:
matrix:
rust: [ nightly ]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Clone submodule
run: git submodule update --init libsensors
- name: Build libsensors
run: make libsensors
- name: Run tests
run: |
cargo test --all --all-features