Merge pull request #14 from benbjohnson/github-actions
Add GitHub Actions support
Ben Johnson authored 3 years ago
GitHub committed 3 years ago
0 | on: [pull_request] | |
1 | name: Test | |
2 | jobs: | |
3 | short: | |
4 | strategy: | |
5 | matrix: | |
6 | os: [ubuntu-latest, windows-latest] | |
7 | runs-on: ${{ matrix.os }} | |
8 | steps: | |
9 | - name: Install Go | |
10 | uses: actions/setup-go@v2 | |
11 | with: | |
12 | go-version: 1.15.x | |
13 | - name: Checkout code | |
14 | uses: actions/checkout@v2 | |
15 | - name: Short test | |
16 | run: go test -short . | |
17 | ||
18 | full: | |
19 | runs-on: ubuntu-latest | |
20 | steps: | |
21 | - name: Install Go | |
22 | uses: actions/setup-go@v2 | |
23 | with: | |
24 | go-version: 1.15.x | |
25 | - name: Checkout code | |
26 | uses: actions/checkout@v2 | |
27 | - name: Test | |
28 | run: go test -parallel 10 . |