[WIP] CI
This commit is contained in:
parent
3a219ee954
commit
366a1fba07
2 changed files with 51 additions and 0 deletions
23
.github/check.yaml
vendored
Normal file
23
.github/check.yaml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: nix-check
|
||||||
|
on:
|
||||||
|
workflow_dispatch: # allows manual triggering
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- update_flake_lock_action
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lockfile:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: cachix/install-nix-action@v17
|
||||||
|
|
||||||
|
- uses: cachix/cachix-action@vXX
|
||||||
|
with:
|
||||||
|
name: aciceri-fleet
|
||||||
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
|
|
||||||
|
- run: nix check -Lv
|
28
.github/update.yaml
vendored
Normal file
28
.github/update.yaml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name: update-flake-lock
|
||||||
|
on:
|
||||||
|
workflow_dispatch: # allows manual triggering
|
||||||
|
schedule:
|
||||||
|
- cron: '0 2 * * *' # running daily at 02:00 AM
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lockfile:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: cachix/install-nix-action@v17
|
||||||
|
|
||||||
|
- uses: cachix/cachix-action@vXX
|
||||||
|
with:
|
||||||
|
name: aciceri-fleet
|
||||||
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
|
|
||||||
|
- name: Update flake.lock
|
||||||
|
uses: DeterminateSystems/update-flake-lock@v14
|
||||||
|
with:
|
||||||
|
pr-title: "Automatic `flake.lock` update"
|
||||||
|
pr-labels: |
|
||||||
|
flake-inputs
|
||||||
|
automatic
|
||||||
|
token: ${{ secrets.PR_UPDATE_FLAKE_TOKEN }} # to open the PR using my GitHub account, needed to trigger the `build` workflow
|
Loading…
Add table
Reference in a new issue