hugo-theme-introduction/.github/workflows/test-versions.yml
2023-02-20 08:19:56 -06:00

41 lines
999 B
YAML

name: test-versions
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
hugo: ['0.106.0', '0.107.0', '0.108.0', '0.108.0', '0.110.0']
fail-fast: true
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
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@v2
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