From 8f5b27d0690f305990adc8702413b00b1dc352a5 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 15 Apr 2023 11:34:34 +0300 Subject: [PATCH] CI: test documentation builds on PR --- .github/workflows/check-docs.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/check-docs.yml diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml new file mode 100644 index 0000000..ed4998e --- /dev/null +++ b/.github/workflows/check-docs.yml @@ -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 + +