You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3
+
4
+
name: Build and Test
5
+
6
+
on:
7
+
# Triggers the workflow on push events for the "main" branch
8
+
push:
9
+
branches: [ "main" ]
10
+
11
+
# Triggers the workflow on pull requests for the "main" branch
12
+
pull_request:
13
+
branches: [ "main" ]
14
+
15
+
# Allows you to run this workflow manually from the Actions tab
16
+
workflow_dispatch:
17
+
18
+
jobs:
19
+
build-and-test:
20
+
name: ${{ matrix.os }}-${{ matrix.node-version }}
21
+
runs-on: ${{ matrix.os }}
22
+
23
+
strategy:
24
+
matrix:
25
+
node-version: [18.x, 20.x, 22.x]
26
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
0 commit comments