Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: Continuous Integration
2
3 on:
4 push:
5 branches:
6 - master
7 pull_request:
8 branches:
9 - '**'
10
11 jobs:
12 test:
13 strategy:
14 matrix:
15 go-version: [ 1.14.x, 1.15.x ]
16 platform: [ ubuntu-latest ]
17 name: ${{ matrix.platform }} @ Go ${{ matrix.go-version }}
18 runs-on: ${{ matrix.platform }}
19 steps:
20 - name: Install Go ${{ matrix.go-version }}
21 uses: actions/[email protected]
22 with:
23 go-version: ${{ matrix.go-version }}
24
25 - name: Set environment
26 run: |
27 echo "GOPATH=$(dirname $GITHUB_WORKSPACE)" >> $GITHUB_ENV
28 echo "$(dirname $GITHUB_WORKSPACE)/bin" >> $GITHUB_PATH
29 shell: bash
30
31 - name: Checkout code
32 uses: actions/checkout@v2
33
34 - name: Test
35 run: |
36 go test -v ./...
37
38 - name: Update go report card
39 if: success() && matrix.platform == 'ubuntu-latest'
40 continue-on-error: true
41 uses: creekorful/[email protected]