.github/workflows/ci.yaml
raw| 1 | name: CI |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | jobs: |
| 6 | test: |
| 7 | name: Test |
| 8 | runs-on: ubuntu-latest |
| 9 | steps: |
| 10 | - name: Checkout code |
| 11 | uses: actions/checkout@master |
| 12 | - name: Setup Go |
| 13 | uses: actions/setup-go@v1 |
| 14 | with: |
| 15 | go-version: 1.x |
| 16 | - name: Add $GOPATH/bin to $PATH |
| 17 | run: echo "::add-path::$(go env GOPATH)/bin" |
| 18 | - name: Test |
| 19 | run: go test -v ./... |
| 20 | - name: Cross compile |
| 21 | run: ./check_crosscompile.sh |