mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-04-26 16:58:26 -04:00
run tests on all OSes
This commit is contained in:
parent
4a2a55ef91
commit
8bcbc1a248
14
.github/workflows/publish.yml
vendored
14
.github/workflows/publish.yml
vendored
@ -13,9 +13,15 @@ jobs:
|
||||
with:
|
||||
node-version: 12
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm ci
|
||||
- run: node cli.js env
|
||||
- run: npm test
|
||||
- run: npm publish --access public
|
||||
- name: npm install and test
|
||||
run: |
|
||||
npm ci
|
||||
npm test
|
||||
env:
|
||||
CI: true
|
||||
- name: Check Hugo version
|
||||
run: node cli.js env
|
||||
- name: Publish!
|
||||
run: npm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@ -4,17 +4,23 @@ on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Node ${{ matrix.node }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
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:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- run: npm ci
|
||||
- run: node cli.js env
|
||||
- run: npm test
|
||||
- name: npm install and test
|
||||
run: |
|
||||
npm ci
|
||||
npm test
|
||||
env:
|
||||
CI: true
|
||||
- name: Check Hugo version
|
||||
run: node cli.js env
|
||||
|
Loading…
x
Reference in New Issue
Block a user