2020-03-15 00:47:39 +00:00
|
|
|
name: test-versions
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-02-11 13:21:12 +00:00
|
|
|
hugo: ['0.49.2', '0.50', '0.60.0', '0.70.0', '0.80.0', '0.90.0', '0.91.0', '0.92.0']
|
2020-03-15 00:47:39 +00:00
|
|
|
|
|
|
|
fail-fast: true
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Set up Node
|
2022-02-11 13:21:12 +00:00
|
|
|
uses: actions/setup-node@v2
|
2020-03-15 00:47:39 +00:00
|
|
|
with:
|
2022-02-11 13:21:12 +00:00
|
|
|
node-version: 16.x
|
2020-03-15 00:47:39 +00:00
|
|
|
- name: Install tools
|
|
|
|
run: |
|
|
|
|
sudo apt install curl jq
|
2021-01-01 12:32:16 +00:00
|
|
|
npm i -g postcss postcss-cli autoprefixer
|
2020-03-15 00:47:39 +00:00
|
|
|
|
|
|
|
- name: Test with Hugo ${{ matrix.hugo }}
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
with:
|
|
|
|
hugo-version: ${{ matrix.hugo }}
|
|
|
|
extended: true
|
|
|
|
|
|
|
|
- name: Build with Hugo ${{ matrix.hugo }}
|
|
|
|
run: |
|
2022-02-11 13:21:12 +00:00
|
|
|
cd exampleSite && HUGO_THEME="hugo-theme-introduction" hugo --themesDir ../.. -v
|
2020-03-15 00:47:39 +00:00
|
|
|
|
|
|
|
- name: Test HTML from Hugo ${{ matrix.hugo }}
|
2020-10-12 02:11:17 +00:00
|
|
|
run: docker run -v ${GITHUB_WORKSPACE}/public/:/mnt 18fgsa/html-proofer mnt --disable-external
|