-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 908 Bytes
/
Copy pathrust.yml
File metadata and controls
38 lines (34 loc) · 908 Bytes
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
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Format checks
run: cargo fmt --check
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
id: tests
# Leaving this here in case tests start failing in CI again.
# continue-on-error: true
# - name: Save output binary if tests failed
# if: always()
# uses: actions/upload-artifact@v3
# with:
# name: ci-test-binary
# path: ./test
# # is there a better way to upload, but keep the failed status?
# - name: Error if tests failed
# if: (needs.build.steps.tests.outcome == 'failure')
# run: exit 1