|
| 1 | +on: [push, pull_request] |
| 2 | +name: Test |
| 3 | +jobs: |
| 4 | + Build-Windows: |
| 5 | + strategy: |
| 6 | + matrix: |
| 7 | + go-version: [1.14.x, 1.15.x] |
| 8 | + platform: [windows-latest] |
| 9 | + runs-on: ${{ matrix.platform }} |
| 10 | + steps: |
| 11 | + - name: Install Go |
| 12 | + uses: actions/setup-go@v1 |
| 13 | + with: |
| 14 | + go-version: ${{ matrix.go-version }} |
| 15 | + - name: Fetch Repository |
| 16 | + uses: actions/checkout@v2 |
| 17 | + - name: Run Test |
| 18 | + run: go test ./... -v -race |
| 19 | + |
| 20 | + Build-Macos: |
| 21 | + strategy: |
| 22 | + matrix: |
| 23 | + go-version: [ 1.14.x, 1.15.x ] |
| 24 | + platform: [macos-latest] |
| 25 | + runs-on: ${{ matrix.platform }} |
| 26 | + steps: |
| 27 | + - name: Install Go |
| 28 | + uses: actions/setup-go@v1 |
| 29 | + with: |
| 30 | + go-version: ${{ matrix.go-version }} |
| 31 | + - name: Fetch Repository |
| 32 | + uses: actions/checkout@v2 |
| 33 | + - name: Run Test |
| 34 | + run: go test ./... -v -race |
| 35 | + |
| 36 | + Build-Linux: |
| 37 | + strategy: |
| 38 | + matrix: |
| 39 | + go-version: [1.14.x, 1.15.x] |
| 40 | + platform: [ubuntu-latest] |
| 41 | + runs-on: ${{ matrix.platform }} |
| 42 | + steps: |
| 43 | + - name: Install Go |
| 44 | + uses: actions/setup-go@v1 |
| 45 | + with: |
| 46 | + go-version: ${{ matrix.go-version }} |
| 47 | + - name: Fetch Repository |
| 48 | + uses: actions/checkout@v2 |
| 49 | + - name: Run Test |
| 50 | + run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic |
| 51 | + - name: Upload Coverage report to CodeCov |
| 52 | + |
| 53 | + with: |
| 54 | + token: ${{secrets.CODECOV_TOKEN}} |
| 55 | + file: ./coverage.txt |
0 commit comments