Skip to content

Commit

Permalink
Merge pull request #40 from lisb/feature/update-workflow
Browse files Browse the repository at this point in the history
update workflows
  • Loading branch information
krdlab authored Mar 8, 2022
2 parents 7fe4e22 + aa621af commit 53b0098
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26 changes: 15 additions & 11 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,25 @@ name: testing
on:
push:
paths:
- 'lib/**.js'
- 'lib/**.js'

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 12, 14, 16 ]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Run smoke tests
timeout-minutes: 2
run: |
node test/login.js "${{ secrets.DIRECT_TESTING_USER }}:${{ secrets.DIRECT_TESTING_PASSWORD }}"
node test/smoke.js
- run: npm install

- name: Run smoke tests
timeout-minutes: 2
run: |
node test/login.js "${{ secrets.DIRECT_TESTING_USER }}:${{ secrets.DIRECT_TESTING_PASSWORD }}"
node test/smoke.js

0 comments on commit 53b0098

Please sign in to comment.