-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 862 Bytes
/
Copy pathrun-tests.yml
File metadata and controls
35 lines (29 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Node.js CI
on:
push:
tags:
- '*'
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [18.x, 20.x, 21.x, 22.x, 23.x]
webpack-version: [5]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install webpack ${{ matrix.webpack-version }}
run: npm i webpack@${{ matrix.webpack-version }}
- name: Run tests for webpack ${{ matrix.webpack-version }}
run: export NODE_OPTIONS=--openssl-legacy-provider && npm test