From 2f884be65b1c4af0871412b43483f497536fbc68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Thu, 15 May 2025 21:28:43 +0200 Subject: [PATCH] ci: split up check-renovaterc This allows us to only run it on changes instead of always. --- .forgejo/workflows/check.yml | 14 +++----------- .forgejo/workflows/renovate.yml | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 .forgejo/workflows/renovate.yml diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index a8e7010..e2786f2 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -1,29 +1,21 @@ on: [push] jobs: - check-renovaterc: - runs-on: nixos - steps: - - uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - name: Validate renovaterc - run: | - nix --version - nix shell nixpkgs#renovate --command renovate-config-validator build: runs-on: nixos steps: - uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - run: nix --version - name: Build Package run: | - nix --version nix build --print-build-logs .# - test: + check-integration-tests: needs: build # we use the built binaries in the checks runs-on: nixos steps: - uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - run: nix --version - name: Run tests run: | - nix --version nix-fast-build --max-jobs 2 --no-nom --skip-cached --no-link \ --flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)" report-size: diff --git a/.forgejo/workflows/renovate.yml b/.forgejo/workflows/renovate.yml new file mode 100644 index 0000000..8d0fc54 --- /dev/null +++ b/.forgejo/workflows/renovate.yml @@ -0,0 +1,14 @@ +on: + push: + paths: + # only run if the renovate config changed + - renovate.json +jobs: + check-renovaterc: + runs-on: nixos + steps: + - uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - run: nix --version + - name: Validate renovaterc + run: | + nix shell nixpkgs#renovate --command renovate-config-validator -- 2.49.0