From 1450cb25b1bccdc4432f8c6bbb48342cabaa2b38 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 16 Sep 2019 05:35:21 +0900 Subject: [PATCH] gha: enhance --- .github/workflows/test.yml | 20 +++++++++++++++----- package.json | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7c5398..2f6a02a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: diff --git a/package.json b/package.json index 6694c01..be6de27 100644 --- a/package.json +++ b/package.json @@ -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" },