This repository was archived by the owner on Jan 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from cgwalters/ci-update
Ci update
- Loading branch information
Showing
1 changed file
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,35 @@ | ||
# Inspired by https://github.com/rust-analyzer/rust-analyzer/blob/master/.github/workflows/ci.yaml | ||
# but tweaked in several ways. If you make changes here, consider doing so across other | ||
# repositories in e.g. ostreedev etc. | ||
name: Rust | ||
|
||
permissions: | ||
actions: read | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [main] | ||
pull_request: | ||
branches: [ main ] | ||
branches: [main] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
container: quay.io/coreos-assembler/fcos-buildroot:testing-devel | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install deps | ||
run: ./ci/installdeps.sh | ||
- name: Format | ||
run: cargo fmt -- --check -l | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Install deps | ||
run: ./ci/installdeps.sh | ||
- name: Format | ||
run: cargo fmt -- --check -l | ||
# xref containers/containers-image-proxy-rs | ||
- name: Cache Dependencies | ||
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 | ||
- name: Build | ||
run: cargo test --no-run | ||
- name: Run tests | ||
run: cargo test -- --nocapture --quiet |