Skip to content

Commit d64590d

Browse files
nicholasbishopGabrielMajeri
authored andcommitted
Run "cargo test" in github actions
1 parent cf75c90 commit d64590d

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/rust.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,35 @@ jobs:
5252
run: ./build.py build
5353
working-directory: ./uefi-test-runner
5454

55-
- name: Run tests
55+
- name: Run VM tests
5656
run: ./build.py run --headless --ci
5757
working-directory: ./uefi-test-runner
5858

59+
test:
60+
name: Run tests and documentation tests
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Checkout sources
64+
uses: actions/checkout@v2
65+
66+
- name: Install latest nightly
67+
uses: actions-rs/toolchain@v1
68+
with:
69+
profile: minimal
70+
toolchain: nightly
71+
components: rust-src
72+
override: true
73+
74+
- name: Run cargo test
75+
uses: actions-rs/cargo@v1
76+
env:
77+
# This works around "duplicate item in crate core" errors:
78+
# https://github.com/rust-lang/wg-cargo-std-aware/issues/56
79+
CARGO_PROFILE_DEV_PANIC: unwind
80+
with:
81+
command: test
82+
args: -Zbuild-std=std --target x86_64-unknown-linux-gnu
83+
5984
lints:
6085
name: Lints
6186
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)