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" },