-
Notifications
You must be signed in to change notification settings - Fork 16
44 lines (32 loc) · 1.15 KB
/
pull_request.yml
File metadata and controls
44 lines (32 loc) · 1.15 KB
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
36
37
38
39
40
41
42
43
name: Node.js CI
on:
pull_request:
branches: [ "main" ]
permissions: {}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 22.x, 24.x]
os: [ubuntu-latest, windows-latest]
# We have dropped running on macOS due to excessive queue times by github hosted agents.
# The publish pipeline will still run on macOS on ADO.
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Check for change files
if: ${{ !contains(github.event.pull_request.title, '***NO_CI***') }}
run: yarn checkchange
- name: Build, test & lint
run: yarn lage build test lint bundle
- name: Check if files updated
run: git diff --exit-code