build(deps): bump the gha group with 5 updates #1606
Workflow file for this run
This file contains 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
name: continuous-integration | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [stable, oldstable] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
env: | |
GO111MODULE: on | |
steps: | |
- | |
name: Checkout code | |
uses: actions/checkout@v4 | |
- | |
name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- | |
name: Clean module files | |
run: | | |
go mod tidy | |
- | |
name: Set tusd output | |
run: | | |
TUSD_BINARY=$PWD/tusd | |
if [ "$RUNNER_OS" = "Windows" ]; then | |
TUSD_BINARY="$TUSD_BINARY.exe" | |
fi | |
echo "TUSD_BINARY=$TUSD_BINARY" >> $GITHUB_ENV | |
shell: bash | |
- | |
name: Compile tusd binary | |
run: | | |
go build -o $TUSD_BINARY ./cmd/tusd/main.go | |
shell: bash | |
- | |
name: Test code | |
run: | | |
go test ./pkg/... | |
go test ./internal/... | |
shell: bash | |
- | |
name: Vet code | |
run: | | |
go vet ./pkg/... | |
go vet ./internal/... |