Skip to content

Commit

Permalink
fix: update action
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Aug 16, 2022
1 parent ea4a423 commit 418ce94
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [14.x, 16.x]
os: [macos-latest, ubuntu-latest]
node: [14.x, 16.x, lts/*]
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
Expand All @@ -21,29 +21,9 @@ jobs:
- name: Run tests
run: |
npm test
test-windows:
strategy:
fail-fast: false
matrix:
node: [14.x, 16.x]
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3.4.1
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: |
npm install --no-progress --no-package-lock
- name: Run tests
run: |
npm run test:node
release:
name: Release
needs: [test, test-windows]
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
Expand All @@ -54,7 +34,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3.4.1
with:
node-version: 14
node-version: 16
- name: Install dependencies
run: |
npm install --no-progress --no-package-lock --no-save
Expand Down

0 comments on commit 418ce94

Please sign in to comment.