mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 17:39:49 +01:00
CI: test documentation builds on PR
This commit is contained in:
parent
a6264dcf73
commit
8f5b27d069
1 changed files with 30 additions and 0 deletions
30
.github/workflows/check-docs.yml
vendored
Normal file
30
.github/workflows/check-docs.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
name: "Validate flake & check formatting"
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- docs/**
|
||||||
|
jobs:
|
||||||
|
nix-flake-check:
|
||||||
|
name: Validate Flake
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
package:
|
||||||
|
- docs
|
||||||
|
- docs-html
|
||||||
|
- docs-manpages
|
||||||
|
- docs-json
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set default git branch (to reduce log spam)
|
||||||
|
run: git config --global init.defaultBranch main
|
||||||
|
- name: Validate Flakes
|
||||||
|
run: nix flake check
|
||||||
|
- name: Build neovim-flake with default settings
|
||||||
|
run: nix build .#${{ matrix.package }} --print-build-logs
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue