Skip to content

CI: Set up caching and update problem matcher #282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Replace unmaintained actions-rs/cargo action with separate problem …
…matcher

Also: Run `cargo check` with `--all-targets --all`.
  • Loading branch information
phil-opp committed Nov 13, 2022
commit e8bd9890f37ecf7943140ece1e5c509c24b3c37d
29 changes: 9 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: r7kamura/rust-problem-matchers@v1.1.0
- name: "Run `cargo check`"
uses: actions-rs/cargo@v1
with:
command: check
run: cargo check --all-targets --all

test:
name: Test
Expand Down Expand Up @@ -53,34 +52,24 @@ jobs:
- name: "Print QEMU Version"
run: qemu-system-x86_64 --version

- uses: r7kamura/rust-problem-matchers@v1.1.0
- name: Run api tests
uses: actions-rs/cargo@v1
with:
command: test
args: -p bootloader_api

run: cargo test -p bootloader_api
- name: Run integration tests
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test

fmt:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run `cargo fmt --all -- --check`
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run `cargo clippy`
uses: actions-rs/cargo@v1
with:
command: clippy
- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo clippy