gha: enhance
This commit is contained in:
parent
cdad2bd631
commit
1450cb25b1
2 changed files with 16 additions and 6 deletions
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue