gha: enhance

This commit is contained in:
peaceiris 2019-09-16 05:35:21 +09:00
parent cdad2bd631
commit 1450cb25b1
2 changed files with 16 additions and 6 deletions

View file

@ -9,11 +9,6 @@ jobs:
test:
runs-on: ubuntu-18.04
strategy:
matrix:
hugo-version: ['', 'latest', '0.58.2']
extended: ['', false, true]
steps:
- uses: actions/checkout@v1
@ -26,6 +21,21 @@ jobs:
# - name: Test script
# run: npm test
- name: Build production
run: npm run build
test-prod:
runs-on: ubuntu-18.04
strategy:
matrix:
hugo-version: [null, 'latest', '0.58.2']
extended: [null, false, true]
steps:
- uses: actions/checkout@v1
- name: Test action
uses: ./
with:

View file

@ -4,7 +4,7 @@
"description": "Hugo setup action",
"main": "index.js",
"scripts": {
"lint": "eslint index.js",
"lint": "eslint ./*.js",
"test": "jest",
"build": "npm prune --production"
},