From 5377bf30e7fb31571b60f51c71a799ee1c9d2dc7 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 | 21 ++++++++++ .tangled/workflows/unit-tests.yaml | 19 ++++++++++ 3 files changed, 40 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..e1306df --- /dev/null +++ b/.tangled/workflows/clippy.yaml @@ -0,0 +1,21 @@ +when: + - event: + - push + - pull_request + - manual + branch: + - main + - push-vpowoozkpwqn + +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..ace16b0 --- /dev/null +++ b/.tangled/workflows/unit-tests.yaml @@ -0,0 +1,19 @@ +when: + - event: + - push + - pull_request + - manual + branch: + - main + - push-vpowoozkpwqn + +engine: nixery + +dependencies: + nixpkgs: + - cargo + +steps: + - name: run unit tests + command: | + cargo test --all-targets --all-features -- 2.51.0