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

39 lines
877 B
YAML
Raw Permalink Normal View History

2020-01-17 17:16:00 +00:00
name: Daily Test
on:
schedule:
- cron: '13 13 * * *'
2020-07-17 06:50:48 +00:00
workflow_dispatch:
2020-01-17 17:16:00 +00:00
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
2020-06-13 08:53:43 +00:00
- 'ubuntu-20.04'
2020-01-17 17:16:00 +00: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 17:16:00 +00:00
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.4.13
2020-01-17 17:16:00 +00:00
with:
hugo-version: ${{ matrix.hugo-version }}
extended: ${{ matrix.extended }}
2020-01-23 15:17:39 +00:00
- name: Run hugo version
run: echo "::set-output name=hugo_version::$(hugo version)"
id: hugo_version
2020-01-23 15:17:39 +00:00
- name: '${{ steps.hugo_version.outputs.hugo_version }}'
run: echo '${{ steps.hugo_version.outputs.hugo_version }}'