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:
|
2019-09-15 23:44:29 +02:00
|
|
|
- master
|
|
|
|
# - '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
|
|
|
|
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 13:27:05 +02:00
|
|
|
run: npm ci
|
2019-09-15 13:24:31 +02:00
|
|
|
|
2019-09-15 22:02:11 +02:00
|
|
|
- name: Lint
|
|
|
|
run: npm run lint
|
|
|
|
|
2019-09-15 13:24:31 +02:00
|
|
|
# - name: Test script
|
2019-09-15 13:27:05 +02:00
|
|
|
# run: npm test
|
2019-09-15 13:24:31 +02:00
|
|
|
|
2019-09-15 22:35:21 +02:00
|
|
|
- name: Build production
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
|
|
|
|
test-prod:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2019-09-15 23:30:16 +02:00
|
|
|
hugo-version: ['0.58.2']
|
2019-09-15 23:21:47 +02:00
|
|
|
# hugo-version: [null, 'latest', '0.58.2']
|
|
|
|
extended: [null, true]
|
|
|
|
# extended: [null, false, true]
|
2019-09-15 22:35:21 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
2019-09-15 13:24:31 +02:00
|
|
|
- name: Test action
|
2019-09-15 18:36:15 +02:00
|
|
|
uses: ./
|
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 }}
|
2019-09-15 17:55:32 +02:00
|
|
|
|
|
|
|
- name: Dump
|
|
|
|
run: |
|
2019-09-15 19:06:57 +02:00
|
|
|
ls -la ${HOME}
|
2019-09-15 18:32:20 +02:00
|
|
|
hugo version
|