diff options
author | Victoria Drake <hello@victoria.dev> | 2020-03-14 18:17:01 +0300 |
---|---|---|
committer | Victoria Drake <hello@victoria.dev> | 2020-03-14 18:18:14 +0300 |
commit | 24348a18880471e49781728f12c2d8457df5d2d9 (patch) | |
tree | e8ed27d618c623860ca47d6af4ccafa4ae4e0bf8 /.github | |
parent | fe5916f9fee29e021a74aa3bd852a6a5c8cf616e (diff) |
🌱 Test versions with Actions
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test-versions.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/test-versions.yml b/.github/workflows/test-versions.yml new file mode 100644 index 0000000..e276e88 --- /dev/null +++ b/.github/workflows/test-versions.yml @@ -0,0 +1,31 @@ +name: Test Hugo versions + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + strategy: + matrix: + hugo: ['0.49.2', '0.50', '0.51', '0.52', '0.53', '0.54.0', '0.55.0', '0.56.0', '0.57.0', '0.58.0', '0.59.0', '0.60.0', '0.61.0', '0.62.0', '0.63.0', '0.64.0', '0.65.0', '0.66.0', '0.67.0'] + + fail-fast: true + + + steps: + - uses: actions/checkout@master + + - 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: hugo --minify + + - name: Test HTML from Hugo ${{ matrix.hugo }} + run: docker run -v ${GITHUB_WORKSPACE}/public/:/mnt 18fgsa/html-proofer mnt --disable-external
\ No newline at end of file |