ci: split up check-renovaterc
This allows us to only run it on changes instead of always.
This commit is contained in:
parent
83e9e95faf
commit
9321ea5602
2 changed files with 16 additions and 10 deletions
|
@ -1,29 +1,21 @@
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
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:
|
build:
|
||||||
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: Build Package
|
- name: Build Package
|
||||||
run: |
|
run: |
|
||||||
nix --version
|
|
||||||
nix build --print-build-logs .#
|
nix build --print-build-logs .#
|
||||||
test:
|
test:
|
||||||
needs: build # we use the built binaries in the checks
|
needs: build # we use the built binaries in the checks
|
||||||
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 tests
|
- name: Run tests
|
||||||
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)"
|
||||||
report-size:
|
report-size:
|
||||||
|
|
14
.forgejo/workflows/renovate.yml
Normal file
14
.forgejo/workflows/renovate.yml
Normal 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
|
||||||
|
run: |
|
||||||
|
nix shell nixpkgs#renovate --command renovate-config-validator
|
Loading…
Add table
Add a link
Reference in a new issue