File tree Expand file tree Collapse file tree 2 files changed +49
-32
lines changed Expand file tree Collapse file tree 2 files changed +49
-32
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+ on :
3+ # Ensure GitHub actions are not run twice for same commits
4+ push :
5+ branches : [master]
6+ tags : ['*']
7+ pull_request :
8+ types : [opened, synchronize, reopened]
9+
10+ jobs :
11+ test-node :
12+ name : Node ${{ matrix.node_version }} on ${{ matrix.os }}
13+ strategy :
14+ matrix :
15+ os : [ubuntu-latest, macOS-latest, windows-latest]
16+ node_version : [12]
17+ runs-on : ${{ matrix.os }}
18+ steps :
19+ - name : Install Node.js ${{ matrix.node }}
20+ uses : actions/setup-node@v1
21+ with :
22+ node-version : ${{ matrix.node_version }}
23+ - name : Git checkout
24+ uses : actions/checkout@v1
25+ - name : Install dependencies
26+ run : npm install
27+ - name : Tests
28+ run : npm test
29+ test-go :
30+ name : Go ${{ matrix.go_version }} on ${{ matrix.os }}
31+ strategy :
32+ matrix :
33+ os : [ubuntu-latest, macOS-latest, windows-latest]
34+ go_version : [1.13.x, 1.14.x]
35+ runs-on : ${{ matrix.os }}
36+ steps :
37+ - name : Install Go ${{ matrix.go }}
38+ uses : actions/setup-go@v2-beta
39+ with :
40+ go-version : ${{ matrix.go_version }}
41+ - name : Checkout code
42+ uses : actions/checkout@v2
43+ - name : Install make
44+ run : choco install make
45+ if : ${{ matrix.os == 'windows-latest' }}
46+ - name : Install dependencies
47+ run : make deps
48+ - name : Tests
49+ run : make test
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments