-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (28 loc) · 919 Bytes
/
node.yml
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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Node version, install dependencies and run tests with NPM
# For more information see: https://github.com/actions/setup-node
name: Node
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18', '20']
steps:
- uses: actions/checkout@v3
- name: Set up Node
# To automatically get bug fixes and new Node versions for node/setup-node,
# change this to (see https://github.com/actions/setup-node#versioning):
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn test