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: test:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
strategy:
matrix:
hugo-version: ['', 'latest', '0.58.2']
extended: ['', false, true]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
@ -26,6 +21,21 @@ jobs:
# - name: Test script # - name: Test script
# run: npm test # 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 - name: Test action
uses: ./ uses: ./
with: with:

View file

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