2019-09-16 01:27:57 +02:00
|
|
|
name: 'Test'
|
|
|
|
|
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
run: npm run lint
|
|
|
|
|
|
|
|
# - name: Test script
|
|
|
|
# run: npm test
|
|
|
|
|
2019-09-17 21:11:47 +02:00
|
|
|
# - name: Build production
|
|
|
|
# run: npm run build
|
2019-09-16 01:27:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
test-prod:
|
|
|
|
runs-on: ubuntu-18.04
|
2019-09-17 21:11:47 +02:00
|
|
|
needs: test
|
2019-09-16 01:27:57 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2019-09-17 21:11:47 +02:00
|
|
|
# hugo-version: ['latest']
|
|
|
|
# extended: [true]
|
|
|
|
hugo-version: ['latest', '0.58.2']
|
|
|
|
extended: [true, false]
|
2019-09-16 01:27:57 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Test action
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
hugo-version: ${{ matrix.hugo-version }}
|
|
|
|
extended: ${{ matrix.extended }}
|