Skip to content

Commit

Permalink
ci: Add Node versions to test (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza authored Oct 21, 2023
1 parent 01efbe2 commit e4374ac
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,41 @@
name: ci
on:
push:
branches: [ master, release, alpha, beta ]
branches:
- master
pull_request:
branches: [ '**' ]
branches:
- '**'
jobs:
test:
strategy:
matrix:
include:
- name: Node.js 14
NODE_VERSION: 14
- name: Node.js 16
NODE_VERSION: 16
- name: Node.js 18
NODE_VERSION: 18
- name: Node.js 20
NODE_VERSION: 20
fail-fast: false
name: ${{ matrix.name }}
timeout-minutes: 15
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: 14
node-version: ${{ matrix.NODE_VERSION }}
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
- name: Install dependencies
run: npm ci
- name: Build package
Expand Down

0 comments on commit e4374ac

Please sign in to comment.