-
Notifications
You must be signed in to change notification settings - Fork 36
43 lines (39 loc) · 1.1 KB
/
ci.yml
File metadata and controls
43 lines (39 loc) · 1.1 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: Continuous Integration
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
# See: https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
pr_number:
description: "PR number to test (for fork PRs)"
required: true
type: string
permissions:
contents: read
jobs:
build:
name: Full Build (node ${{ matrix.node_version }})
runs-on: ubuntu-latest
strategy:
matrix:
node_version:
- 22.x
- 24.x
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
ref: ${{ inputs.pr_number && format('refs/pull/{0}/head', inputs.pr_number) || '' }}
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node_version }}
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Build
run: yarn run ci