-
-
Notifications
You must be signed in to change notification settings - Fork 186
51 lines (41 loc) · 1.22 KB
/
node-windows.yml
File metadata and controls
51 lines (41 loc) · 1.22 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
44
45
46
47
48
49
50
51
name: Windows
on:
# Run on all PRs (regardless of base branch)
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
# Run on direct pushes to the default branch only (avoid duplicate runs for PR branches)
push:
branches:
- master
jobs:
build:
runs-on: windows-latest
# Ensure only one run per PR/branch is active; cancel superseded runs on new pushes
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref_name }}
cancel-in-progress: true
name: Validate (Windows)
steps:
- name: Configure git line-breaks
run: git config --global core.autocrlf false
- name: Checkout Commit
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout Master
if: ${{ github.ref_name != 'master' }}
run: git branch -f master origin/master
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.19.0
- name: install pnpm
run: npm install pnpm -g
- name: pnpm install
run: pnpm install --ignore-scripts
- name: run tests
run: pnpm test