configuration.nix/.github/workflows/check.yml
Renovate Bot fa6cecf8df
All checks were successful
/ check (nvimDev) (push) Successful in 5s
/ check (nvimHeadless) (push) Successful in 3s
/ check (nvimNoBundledBins) (push) Successful in 4s
/ check (nvimNoLsp) (push) Successful in 4s
/ check (nvimNoTSGrammars) (push) Successful in 5s
/ check (treefmt) (push) Successful in 2s
/ build (audiomenu) (push) Successful in 0s
/ build (docs) (push) Successful in 0s
/ build (jpassmenu) (push) Successful in 0s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 1s
/ build (nvim) (push) Successful in 1s
/ report-size (push) Successful in 3s
chore(deps): update determinatesystems/magic-nix-cache-action action to v8
| datasource  | package                                   | from | to |
| ----------- | ----------------------------------------- | ---- | -- |
| github-tags | DeterminateSystems/magic-nix-cache-action | v7   | v8 |
2025-01-08 00:50:14 +01:00

52 lines
1.5 KiB
YAML

name: Check flake
on:
push:
branches: [main]
path:
- ./**.nix
- ./flake.lock
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v13
with:
source-url: "https://install.lix.systems/lix/lix-installer-x86_64-linux"
diagnostic-endpoint: ""
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Run `nix flake check`
run: |
nix flake check --verbose --keep-going
nix run nixpkgs#statix -- check .
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: DeterminateSystems/nix-installer-action@v13
with:
source-url: "https://install.lix.systems/lix/lix-installer-x86_64-linux"
diagnostic-endpoint: ""
- name: Build documentation
run: nix build .#docs --print-build-logs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./result
deploy-docs:
runs-on: ubuntu-latest
needs: build-docs
if: ${{ github.event_name == 'push' }} # only run on main branch
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4