Skip to content

Commit f21818a

Browse files
committed
chore: replace appveyor with github workflows windows runners
Run the unit tests on both ubuntu-latest and windows-latest, run lint once, and also run CI on pull requests.
1 parent 6c41bf6 commit f21818a

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
11
name: CI
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
6-
unit:
6+
lint:
77
runs-on: ubuntu-latest
88

9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: '22'
15+
16+
- run: npm ci
17+
18+
- run: npm run lint
19+
20+
unit:
21+
runs-on: ${{ matrix.os }}
22+
923
strategy:
24+
fail-fast: false
1025
matrix:
26+
os: [ubuntu-latest, windows-latest]
1127
node-version: ['18', '20', '22']
1228

1329
steps:
@@ -19,6 +35,4 @@ jobs:
1935

2036
- run: npm ci
2137

22-
- run: npm run lint
23-
2438
- run: npm test

‎README.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# cross-spawn
22

3-
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Build status][appveyor-image]][appveyor-url]
3+
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url]
44

55
[npm-url]:https://npmjs.org/package/cross-spawn
66
[downloads-image]:https://img.shields.io/npm/dm/cross-spawn.svg
77
[npm-image]:https://img.shields.io/npm/v/cross-spawn.svg
88
[ci-url]:https://github.com/moxystudio/node-cross-spawn/actions/workflows/ci.yaml
99
[ci-image]:https://github.com/moxystudio/node-cross-spawn/actions/workflows/ci.yaml/badge.svg
10-
[appveyor-url]:https://ci.appveyor.com/project/satazor/node-cross-spawn
11-
[appveyor-image]:https://img.shields.io/appveyor/ci/satazor/node-cross-spawn/master.svg
1210

1311
A cross platform solution to node's spawn and spawnSync.
1412

0 commit comments

Comments
 (0)