Skip to content

Commit ec9031b

Browse files
Add GitHub Actions CI (#8)
1 parent 48b8fdb commit ec9031b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
env:
12+
CI: true
13+
14+
runs-on: ${{ matrix.os }}
15+
16+
# TODO: enable builds on Windows
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest, macOS-latest]
20+
node-version: [10.x, 12.x]
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v1
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
- name: Setup Git for committing
29+
run: |
30+
git config --global user.name "GitHub Actions"
31+
git config --global user.email "gh-actions@domain"
32+
- run: npm ci
33+
name: Run NPM clean install
34+
- name: Run tests
35+
shell: pwsh
36+
run: ./test/GitInfoTest.ps1

0 commit comments

Comments
 (0)