ci: only run check-renovaterc when the renovaterc changes #486

Merged
jalil merged 1 commit from push-zrmpzpvwtnqq into main 2025-05-16 19:14:06 +02:00
3 changed files with 17 additions and 11 deletions
Showing only changes of commit 46a36b1001 - Show all commits

View file

@ -5,27 +5,19 @@ jobs:
runs-on: nixos runs-on: nixos
steps: steps:
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4 - uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
- run: nix --version
- name: Run checks - name: Run checks
run: | run: |
nix --version
nix-fast-build --max-jobs 2 --no-nom --skip-cached --no-link \ nix-fast-build --max-jobs 2 --no-nom --skip-cached --no-link \
--flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)" --flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)"
check-renovaterc:
runs-on: nixos
steps:
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
- name: Validate renovaterc.json
run: |
nix --version
nix shell nixpkgs#renovate --command renovate-config-validator
build-packages: build-packages:
runs-on: nixos runs-on: nixos
needs: check needs: check
steps: steps:
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4 - uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
- run: nix --version
- name: Build target - name: Build target
run: | run: |
nix --version
nix-fast-build --max-jobs 1 --no-nom --skip-cached --no-link \ nix-fast-build --max-jobs 1 --no-nom --skip-cached --no-link \
--flake ".#packages.$(nix eval --raw --impure --expr builtins.currentSystem)" --flake ".#packages.$(nix eval --raw --impure --expr builtins.currentSystem)"
build-vm: build-vm:
@ -33,9 +25,9 @@ jobs:
needs: build-packages needs: build-packages
steps: steps:
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4 - uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
- run: nix --version
- name: Build VM configuration - name: Build VM configuration
run: | run: |
nix --version
nix build --print-build-logs '.#nixosConfigurations.vm.config.system.build.toplevel' nix build --print-build-logs '.#nixosConfigurations.vm.config.system.build.toplevel'
report-size: report-size:
runs-on: nixos runs-on: nixos

View file

@ -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.json
run: |
nix shell nixpkgs#renovate --command renovate-config-validator