Merge pull request #67 from cgwalters/bump-oci-spec #195
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
name: CI | |
permissions: | |
actions: read | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_NET_RETRY: 10 | |
CARGO_TERM_COLOR: always | |
CI: 1 | |
RUSTUP_MAX_RETRIES: 10 | |
RUST_BACKTRACE: short | |
jobs: | |
build-test: | |
name: Build+Test | |
runs-on: ubuntu-latest | |
container: quay.io/coreos-assembler/fcos-buildroot:testing-devel | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 20 | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: cargo fmt (check) | |
run: cargo fmt -- --check -l | |
- name: Compile (no features) | |
run: cargo test --no-run | |
- name: Compile (all features) | |
run: cargo test --no-run --all-features | |
- name: Test | |
run: cargo test --all-features -- --nocapture --quiet | |
- name: cargo clippy (non-gating) | |
run: cargo clippy | |
- name: Checkout ostree-rs-ext | |
uses: actions/checkout@v3 | |
with: | |
# repository: ostreedev/ostree-rs-ext | |
# Temporary fork until https://github.com/ostreedev/ostree-rs-ext/pull/663 | |
# is published in a release | |
repository: jeckersb/ostree-rs-ext | |
ref: ocidir-0.3 | |
path: ostree-rs-ext | |
fetch-depth: 20 | |
- name: Test ostree-rs-ext | |
run: ./ci/test-ostree-rs-ext.sh |