From 68388579e94eb1890530bec534bab0b336637147 Mon Sep 17 00:00:00 2001 From: tjh Date: Sat, 27 Sep 2025 21:48:42 +0100 Subject: [PATCH] upgrade continuous integration Change-Id: vpowoozkpwqnsukuozlxmkspplkllypx Signed-off-by: tjh --- .github/workflows/continuous-integration.yaml | 38 ------------------- .tangled/workflows/clippy.yaml | 19 ++++++++++ .tangled/workflows/unit-tests.yaml | 17 +++++++++ 3 files changed, 36 insertions(+), 38 deletions(-) delete mode 100644 .github/workflows/continuous-integration.yaml create mode 100644 .tangled/workflows/clippy.yaml create mode 100644 .tangled/workflows/unit-tests.yaml diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml deleted file mode 100644 index 22960b6..0000000 --- a/.github/workflows/continuous-integration.yaml +++ /dev/null @@ -1,38 +0,0 @@ -name: Continuous Integration -on: - - push - - pull_request - -jobs: - unit-tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Run unit tests - run: cargo test --all-targets --all-features - - clippy-check: - runs-on: ubuntu-latest - env: - RUSTFLAGS: "-Dwarnings" - steps: - - uses: actions/checkout@v4 - - name: Run Clippy - run: cargo clippy --all-targets --all-features - - cargo-deny: - runs-on: ubuntu-latest - strategy: - matrix: - checks: - - advisories - - bans licenses sources - - # Prevent sudden announcement of a new advisory from failing ci: - continue-on-error: ${{ matrix.checks == 'advisories' }} - - steps: - - uses: actions/checkout@v4 - - uses: EmbarkStudios/cargo-deny-action@v2 - with: - command: check ${{ matrix.checks }} diff --git a/.tangled/workflows/clippy.yaml b/.tangled/workflows/clippy.yaml new file mode 100644 index 0000000..f98ffd3 --- /dev/null +++ b/.tangled/workflows/clippy.yaml @@ -0,0 +1,19 @@ +when: + - event: + - push + - pull_request + branch: + - main + +engine: nixery + +dependencies: + nixpkgs: + - cargo + +steps: + - name: run clippy + environment: + RUSTFLAGS: "-Dwarnings" + command: | + cargo clippy --all-targets --all-features diff --git a/.tangled/workflows/unit-tests.yaml b/.tangled/workflows/unit-tests.yaml new file mode 100644 index 0000000..d6c928f --- /dev/null +++ b/.tangled/workflows/unit-tests.yaml @@ -0,0 +1,17 @@ +when: + - event: + - push + - pull_request + branch: + - main + +engine: nixery + +dependencies: + nixpkgs: + - cargo + +steps: + - name: run unit tests + command: | + cargo test --all-targets --all-features -- 2.51.0