Skip to content

Commit

Permalink
chore(workflows): test on multiple node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams committed Sep 24, 2020
1 parent b06c379 commit 1c403f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/testAndPublishOnTag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ name: Publish on tag
on:
push:
tags:
- '*'
- "*"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [8, 10, 12, 14]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run build
- run: npm run test
Expand Down Expand Up @@ -41,10 +44,10 @@ jobs:
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@jpwilliams'
scope: "@jpwilliams"
- run: npm ci
- run: npm run build
- name: 'publish to gpr'
- name: "publish to gpr"
run: |
npm publish --registry=https://npm.pkg.github.com/jpwilliams --scope=@jpwilliams
env:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/testOnPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [8, 10, 12, 14]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run build
- run: npm run test

0 comments on commit 1c403f6

Please sign in to comment.