Skip to content

Commit

Permalink
chore: test on Node.js 18 and 20
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-f committed Feb 6, 2024
1 parent c5e9826 commit 9247987
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/composite/nodejs/action.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: "Install Node.js with dependencies"
description: ""
inputs:
version:
description: "version of Node.js"
required: true

runs:
using: composite
steps:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
node-version: ${{ inputs.version }}

# this workflow maybe broken - GET https://registry.npmjs.org/pnpm error (ERR_INVALID_THIS).
# - name: Install pnpm
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -18,6 +22,8 @@ jobs:

- name: Install Node.js
uses: ./.github/composite/nodejs
with:
version: ${{ matrix.node }}

- name: Build Package
shell: bash
Expand Down

0 comments on commit 9247987

Please sign in to comment.