-
Notifications
You must be signed in to change notification settings - Fork 32
65 lines (58 loc) · 1.57 KB
/
htmltest.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Hugo HTML lint
permissions:
contents: read
concurrency:
group: html-lint-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- staging
- trying
pull_request:
branches: [master]
workflow_dispatch:
jobs:
test-skip-check:
uses: ./.github/workflows/skip-test-check.yml
permissions:
pull-requests: read
with:
labels: '["CI:bors-skip-html-lint"]'
secrets: inherit
htmltest:
runs-on: ubuntu-latest
name: Run htmltest to lint Hugo output
needs: test-skip-check
steps:
- name: Dump context
uses: crazy-max/ghaction-dump-context@v2.0.0
- name: Checkout code
if: ${{ needs.test-skip-check.outputs.no-skip }}
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Hugo
if: ${{ needs.test-skip-check.outputs.no-skip }}
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.97.3'
extended: true
- name: Run Hugo in the background
if: ${{ needs.test-skip-check.outputs.no-skip }}
run: ./hugo-start.sh &
# Skip running for now
- name: Run htmltest
if: ${{ false }}
run: |
make htmltest
# Job that follows the success of all required jobs in this workflow.
# Used by Bors to detect that all required jobs have completed successfully
done:
name: Pass html lint
if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
needs: htmltest
runs-on: ubuntu-latest
steps:
- name: Done
run: echo "Done!"