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:
parent
4a2a55ef91
commit
8bcbc1a248
14
.github/workflows/publish.yml
vendored
14
.github/workflows/publish.yml
vendored
@ -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 }}
|
||||||
|
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user