-
Notifications
You must be signed in to change notification settings - Fork 8
57 lines (53 loc) · 1.48 KB
/
ci.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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