actions-hugo/.github/workflows/test-action.yml

39 lines
876 B
YAML
Raw Normal View History

2020-01-17 18:16:00 +01:00
name: Daily Test
on:
schedule:
- cron: '13 13 * * *'
2020-07-17 08:50:48 +02:00
workflow_dispatch:
2020-01-17 18:16:00 +01:00
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
2020-06-13 10:53:43 +02:00
- 'ubuntu-20.04'
2020-01-17 18:16:00 +01:00
- 'ubuntu-18.04'
- 'macos-latest'
- 'windows-latest'
hugo-version:
- 'latest'
- '0.61.0'
extended:
- true
- false
steps:
- uses: actions/checkout@v2.3.4
2020-01-17 18:16:00 +01:00
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.5.0
2020-01-17 18:16:00 +01:00
with:
hugo-version: ${{ matrix.hugo-version }}
extended: ${{ matrix.extended }}
2020-01-23 16:17:39 +01:00
- name: Run hugo version
run: echo "::set-output name=hugo_version::$(hugo version)"
id: hugo_version
2020-01-23 16:17:39 +01:00
- name: '${{ steps.hugo_version.outputs.hugo_version }}'
run: echo '${{ steps.hugo_version.outputs.hugo_version }}'