This commit is contained in:
Daniel Winkler 2025-09-01 17:38:22 +10:00
commit 075da8c81b
4 changed files with 89 additions and 21 deletions

30
.github/workflows/check.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: "Test RDE template"
on:
workflow_dispatch: # allows manual triggering
push:
paths:
- 'flake.lock'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v5
- uses: wimpysworld/nothing-but-nix@main
with:
hatchet-protocol: 'carve'
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v14
with:
name: rde
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: rstats-on-nix, nix-community
- run: nix build .
- run: nix flake check .

25
.github/workflows/update.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 3 * * *'
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Install Determinate Nix
uses: DeterminateSystems/determinate-nix-action@v3
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Update n flake.lock
uses: DeterminateSystems/update-flake-lock@v27
with:
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
branch: update_fran
pr-title: "Update FRAN flake.lock" # Title of PR to be created
pr-labels: | # Labels to be set on the PR
dependencies
automated