Skip to content

Commit 6b21ce7

Browse files
ygj6ygj6
authored and
ygj6
committed
ci: add ci run on windows
1 parent 21189df commit 6b21ce7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/nodejs.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,23 @@ name: Node.js CI
55

66
on:
77
push:
8-
branches: [main]
8+
branches: [dev]
99
pull_request:
10-
branches: [main]
10+
branches: [dev]
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ${{ matrix.os }}
1515

1616
strategy:
1717
matrix:
18-
node-version: [10.x, 12.x, 14.x]
18+
node-version: [12.x, 14.x, 16.x]
19+
os: [ubuntu-latest, windows-latest]
1920

2021
steps:
22+
- name: windows git setup
23+
if: runner.os == 'Windows'
24+
run: git config --global core.autocrlf false
2125
- uses: actions/checkout@v2
2226
- name: Use Node.js ${{ matrix.node-version }}
2327
uses: actions/setup-node@v1

0 commit comments

Comments
 (0)