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