Merge pull request #153 from github/vdye/update-download-url #174
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| on: [push, pull_request] | |
| name: Test | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: '1.17' | |
| - name: Check out code | |
| uses: actions/checkout@v2 | |
| - name: Get full repo history | |
| run: git fetch --prune --unshallow --tags | |
| - name: Download dependencies | |
| shell: bash | |
| run: go mod download | |
| - name: Build | |
| shell: bash | |
| run: | | |
| mkdir -p bin | |
| go build -o bin . | |
| ls -la bin | |
| - name: Test | |
| shell: bash | |
| run: go test -race -timeout 60s ./... |