CI: test documentation builds on PR

This commit is contained in:
NotAShelf 2023-04-15 11:34:34 +03:00
parent a6264dcf73
commit 8f5b27d069
No known key found for this signature in database
GPG Key ID: F0D14CCB5ED5AA22
1 changed files with 30 additions and 0 deletions

30
.github/workflows/check-docs.yml vendored Normal file
View 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