-
-
Notifications
You must be signed in to change notification settings - Fork 262
41 lines (32 loc) · 988 Bytes
/
test-versions.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
name: test-versions
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
hugo: ['0.135.0', '0.136.5', '0.137.1', '0.138.0']
fail-fast: true
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install tools
run: |
sudo apt install curl jq
npm i -g postcss postcss-cli autoprefixer
- name: Test with Hugo ${{ matrix.hugo }}
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ${{ matrix.hugo }}
extended: true
- name: Build with Hugo ${{ matrix.hugo }}
run: |
cd exampleSite && HUGO_THEME="hugo-theme-introduction" hugo --themesDir ../.. -v
- name: Test HTML from Hugo ${{ matrix.hugo }}
run: docker run -v ${GITHUB_WORKSPACE}/public/:/mnt 18fgsa/html-proofer mnt --disable-external