Skip to content

Commit a0bfc37

Browse files
authored
Merge pull request #380 from iclanton/github-ci
Use GitHub CI.
2 parents 7d9fa37 + a1672ae commit a0bfc37

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: ['main']
5+
pull_request:
6+
branches: ['main']
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
include:
14+
- NodeVersion: 16.20.x
15+
NodeVersionDisplayName: 16
16+
OS: ubuntu-latest
17+
- NodeVersion: 18.18.x
18+
NodeVersionDisplayName: 18
19+
OS: ubuntu-latest
20+
- NodeVersion: 20.9.x
21+
NodeVersionDisplayName: 20
22+
OS: ubuntu-latest
23+
- NodeVersion: 18.18.x
24+
NodeVersionDisplayName: 18
25+
OS: windows-latest
26+
name: Node.js v${{ matrix.NodeVersionDisplayName }} (${{ matrix.OS }})
27+
runs-on: ${{ matrix.OS }}
28+
steps:
29+
- uses: actions/checkout@v3
30+
with:
31+
fetch-depth: 2
32+
33+
- name: Git config user
34+
run: |
35+
git config --local user.name "Rushbot"
36+
git config --local user.email "rushbot@users.noreply.github.com"
37+
38+
- uses: actions/setup-node@v3
39+
with:
40+
node-version: ${{ matrix.NodeVersion }}
41+
42+
- name: Verify Change Logs
43+
run: node common/scripts/install-run-rush.js change --verify
44+
45+
- name: Rush Install
46+
run: node common/scripts/install-run-rush.js install
47+
48+
- name: Rush retest
49+
run: node common/scripts/install-run-rush.js retest --verbose --production

0 commit comments

Comments
 (0)