Skip to content

Commit

Permalink
Merge pull request WebOfTrust#211 from lenkan/chore-upgrade-workflow
Browse files Browse the repository at this point in the history
chore: upgrade workflow actions, add node 20 to test matrix
  • Loading branch information
pfeairheller authored Feb 13, 2024
2 parents 5292b24 + a0808b2 commit 433a968
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,21 @@ on:
workflow_dispatch:
jobs:
build:
name: Build, lint, and test on Node 18.12.1 and ${{ matrix.os }}
name: Build, lint, and test on Node ${{ matrix.node-version }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-latest]
node-version: ['18', '20']

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '18.12.1'
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
Expand Down Expand Up @@ -55,11 +56,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '18.12.1'
node-version: '18'
cache: 'npm'
- name: install deps
run: npm ci
Expand All @@ -78,11 +79,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '18.12.1'
node-version: '20'
cache: 'npm'
- name: Run audit
run: npm audit

0 comments on commit 433a968

Please sign in to comment.