From 103bc73addf09841c0bcc00d2972305e33b7499b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Fri, 2 Feb 2024 08:59:53 +0100 Subject: [PATCH 1/2] ci: check for signed commits --- .github/workflows/pre-check.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/pre-check.yml diff --git a/.github/workflows/pre-check.yml b/.github/workflows/pre-check.yml new file mode 100644 index 00000000..dca4716f --- /dev/null +++ b/.github/workflows/pre-check.yml @@ -0,0 +1,13 @@ +name: pre-check +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + check-signed-commits: + runs-on: ubuntu-latest + steps: + - name: check signed commits + uses: 1Password/check-signed-commits-action@v1 From 26db3a1b023a729dffd8bb14d9704c329f338089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Tue, 6 Feb 2024 09:46:32 +0100 Subject: [PATCH 2/2] ci: perform format, audit, lint, and coverage on linux only --- .github/workflows/check.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 981004ab..218243b9 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -21,8 +21,21 @@ jobs: uname -a nix --version - - name: check - run: nix flake check -L --show-trace + - name: format + if: matrix.os == 'ubuntu-latest' + run: nix build -L --no-link --show-trace .#checks.x86_64-linux.treefmt + + - name: audit + if: matrix.os == 'ubuntu-latest' + run: nix build -L --no-link --show-trace .#checks.x86_64-linux.audit + + - name: lint + if: matrix.os == 'ubuntu-latest' + run: nix build -L --no-link --show-trace .#checks.x86_64-linux.lint + + - name: coverage + if: matrix.os == 'ubuntu-latest' + run: nix build -L --no-link --show-trace .#checks.x86_64-linux.coverage-report - name: kairos x86_64-linux if: matrix.os == 'ubuntu-latest'