Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/flake-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Flake Check

on:
push:
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- "flake.lock"

jobs:
flake-check:
runs-on: ubuntu-latest
Comment thread
Mshehu5 marked this conversation as resolved.
strategy:
matrix:
checks:
- msrv
- stable
- nightly
- maintenance
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Enable magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Run full flake check
run: nix build .#checks.x86_64-linux.${{ matrix.checks }}
52 changes: 52 additions & 0 deletions .github/workflows/flake-maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Flake maintenance

on:
schedule:
- cron: "0 11 * * 1" # weekly at 14:00 UTC
workflow_dispatch:

jobs:
validate-lock-file:
runs-on: ubuntu-latest
strategy:
matrix:
checks:
- msrv
- stable
- nightly
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Enable magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Validate recreated lockfile
run: nix build .#checks.x86_64-linux.${{ matrix.checks }} -L --recreate-lock-file --no-write-lock-file

update-lock-file:
needs: validate-lock-file
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Enable magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: "chore: update flake.lock"
commit-msg: "chore: update flake.lock"
token: ${{ secrets.GITHUB_TOKEN }}
nix-options: --offline
10 changes: 10 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,16 @@
]
++ pkgs.lib.attrValues packages
);

maintenance = checkSuite "maintenance" (
with self.outputs.checks.${system};
[
payjoin-workspace-machete
payjoin-workspace-clippy
payjoin-workspace-doc
formatting
]
);
};
}
);
Expand Down
Loading