Skip to content

Commit

Permalink
chore(workflow): update GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
krdlab committed Sep 4, 2024
1 parent 1a1d6bf commit ee528a2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
Expand Down
34 changes: 29 additions & 5 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,49 @@
name: testing
name: Test direct-js

on:
push:
branches:
- master
paths-ignore:
- LICENSE
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- LICENSE
- '**.md'

permissions:
contents: read

defaults:
run:
shell: bash

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 16, 18, 20 ]
os:
- ubuntu-latest
- windows-latest
- macos-latest
node:
- 18.x
- 20.x
- 22.x

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
cache-dependency-path: '**/package-lock.json'

- run: npm install

Expand Down

0 comments on commit ee528a2

Please sign in to comment.