1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-26 14:38:28 -04:00

run tests on all OSes

This commit is contained in:
Jake Jarvis 2020-01-31 08:44:20 -05:00
parent 4a2a55ef91
commit 8bcbc1a248
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
2 changed files with 23 additions and 11 deletions

View File

@ -13,9 +13,15 @@ jobs:
with: with:
node-version: 12 node-version: 12
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci - name: npm install and test
- run: node cli.js env run: |
- run: npm test npm ci
- run: npm publish --access public npm test
env:
CI: true
- name: Check Hugo version
run: node cli.js env
- name: Publish!
run: npm publish --access public
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -4,17 +4,23 @@ on: [push, pull_request]
jobs: jobs:
test: test:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false
matrix: matrix:
node: [12, 10] os: [ubuntu-latest, windows-latest, macOS-latest]
node: [13.x, 12.x, 10.x, 8.x]
fail-fast: false
runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node }} on ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
- run: npm ci - name: npm install and test
- run: node cli.js env run: |
- run: npm test npm ci
npm test
env:
CI: true
- name: Check Hugo version
run: node cli.js env