Debian Codegraph @

new/.github/workflows/node-windows.yml

raw
1 name: Windows
2
3 on:
4 pull_request:
5 types:
6 - edited
7 - opened
8 - synchronize
9 workflow_dispatch:
10
11 jobs:
12 build:
13 runs-on: windows-latest
14
15 strategy:
16 matrix:
17 node: ['24', '20']
18
19 name: Node v${{ matrix.node }}
20 steps:
21 - name: Configure git line-breaks
22 run: git config --global core.autocrlf false
23
24 - name: Checkout Commit
25 uses: actions/checkout@v4
26 with:
27 fetch-depth: 2
28
29 - name: Update Master
30 shell: bash
31 run: |
32 # Ensure the remote-tracking ref exists and is up-to-date without invoking an implicit merge
33 set -euo pipefail
34 # Ensure the remote-tracking ref and local branch ref are up-to-date without invoking an implicit merge
35 DEFAULT_BRANCH="${{ github.event.repository.default_branch }}"
36 git fetch --no-tags --force origin \
37 "+refs/heads/${DEFAULT_BRANCH}:refs/remotes/origin/${DEFAULT_BRANCH}" \
38 "+refs/heads/${DEFAULT_BRANCH}:refs/heads/${DEFAULT_BRANCH}"
39
40 - name: Setup Node
41 uses: actions/setup-node@v3
42 with:
43 node-version: ${{ matrix.node }}
44
45 - name: Install PNPM
46 uses: pnpm/action-setup@v4
47
48 - name: pnpm install
49 run: pnpm install --ignore-scripts
50
51 - name: run tests
52 run: pnpm --workspace-concurrency 1 --filter "...[origin/master]" ci:test