-
Notifications
You must be signed in to change notification settings - Fork 84
33 lines (26 loc) · 1.16 KB
/
pr-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Pull Request tests
on:
pull_request:
types: [opened, synchronize]
jobs:
pull-request-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell --run 'echo "Installed nix dependencies"'
- name: Install assets
run: nix-shell --run 'cd themes/hugo-darktable-docs-theme/assets/ && yarn install'
- name: Run linkchecker
run: nix-shell --run 'hugo server --disableFastRender -verbose --config config.yaml -b https://darktable-org.github.io/dtdocs/ & sleep 30 && linkchecker --ignore-url .*pdf$ --ignore-url .*epub$ --no-status http://localhost:1313/dtdocs/index.html && pkill hugo'
- name: Generate translated files
run: nix-shell --run 'cd tools && bash generate-translations.sh --no-update'
- name: Clear
run: nix-shell --run 'rm -rf public'
- name: Build
run: nix-shell --run 'hugo'