mirror of
https://github.com/tux3/crowdstrike-cloudproto
synced 2026-06-08 17:59:21 +00:00
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
# We use ready!(), which is in 1.64 only
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: beta
|
|
default: true
|
|
components: clippy
|
|
- name: Test
|
|
run: cargo build --all
|
|
- name: Test (no features)
|
|
run: cargo test --no-default-features
|
|
- name: Test (all features)
|
|
run: cargo test --all-features
|
|
clippy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
# We use ready!(), which is in 1.64 only
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: beta
|
|
default: true
|
|
components: clippy
|
|
- name: Clippy
|
|
run: cargo clippy --all --all-targets -- -D warnings
|
|
- name: Clippy (no features)
|
|
run: cargo clippy --all --all-targets --no-default-features -- -D warnings
|
|
- name: Clippy (XZ compression)
|
|
run: cargo clippy --all --all-targets --no-default-features --features lfo-compress-xz -- -D warnings
|
|
- name: Clippy (verify hashes)
|
|
run: cargo clippy --all --all-targets --no-default-features --features lfo-check-hash -- -D warnings
|
|
- name: Clippy (all features)
|
|
run: cargo clippy --all --all-targets --all-features -- -D warnings
|