2019-09-15 13:24:31 +02:00
|
|
|
name: 'Test'
|
2019-09-15 10:08:08 +02:00
|
|
|
|
2019-09-15 09:52:29 +02:00
|
|
|
on:
|
|
|
|
push:
|
2019-09-15 10:08:08 +02:00
|
|
|
branches:
|
|
|
|
- 'migrate-javascript-action'
|
2019-09-15 09:52:29 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2019-09-15 10:08:08 +02:00
|
|
|
runs-on: ubuntu-18.04
|
2019-09-15 13:24:31 +02:00
|
|
|
|
|
|
|
strategy:
|
2019-09-15 13:26:16 +02:00
|
|
|
matrix:
|
|
|
|
hugo-version: ['', 'latest', '0.58.2']
|
|
|
|
extended: ['', false, true]
|
2019-09-15 13:24:31 +02:00
|
|
|
|
2019-09-15 09:52:29 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
2019-09-15 13:24:31 +02:00
|
|
|
- name: Install dependencies
|
2019-09-15 09:52:29 +02:00
|
|
|
- run: npm ci
|
2019-09-15 13:24:31 +02:00
|
|
|
|
|
|
|
# - name: Test script
|
|
|
|
# - run: npm test
|
|
|
|
|
|
|
|
- name: Test action
|
|
|
|
uses: peaceiris/actions-hugo@migrate-javascript-action
|
2019-09-15 10:08:08 +02:00
|
|
|
with:
|
2019-09-15 13:24:31 +02:00
|
|
|
hugo-version: ${{ matrix.hugo-version }}
|
|
|
|
extended: ${{ matrix.extended }}
|
|
|
|
milliseconds: 100
|