-
Notifications
You must be signed in to change notification settings - Fork 11
35 lines (28 loc) · 816 Bytes
/
CI.yml
File metadata and controls
35 lines (28 loc) · 816 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: CI
on:
- push
- pull_request
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
tests:
strategy:
matrix:
node:
- 18.x
- 20.x
# Packages 'firefox' and 'chromium' are pre-installed.
#
# https://github.com/actions/runner-images/blob/ubuntu22/20230402.1/images/linux/Ubuntu2204-Readme.md
runs-on: ubuntu-22.04
name: Node.js ${{ matrix.node }}
steps:
# Clone the repo and checkout the commit for which the workflow was triggered
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm install
- name: Tests
run: npm test