Skip to content

Bump golang.org/x/term from 0.18.0 to 0.20.0 #106

Bump golang.org/x/term from 0.18.0 to 0.20.0

Bump golang.org/x/term from 0.18.0 to 0.20.0 #106

Workflow file for this run

name: Tests on MacOS
on:
push:
pull_request:
jobs:
check:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Download particular version of Go
run: curl -o go.tar.gz https://storage.googleapis.com/golang/go1.20.1.darwin-amd64.tar.gz
- name: Install Go
run: sudo tar -C /usr/local -xzf go.tar.gz
- name: Install Go
run: sudo echo "/usr/local/go/bin" >> $GITHUB_PATH
- name: Verify dependencies
run: go mod verify
- name: Build
run: go build -v ./...
- name: Run go vet
run: go vet ./...
- name: Install staticcheck
run: GOBIN=/usr/local/bin/ go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: staticcheck ./...
- name: Run unit tests
run: go test -race -vet=off ./...
- name: Build command util
run: go build -asmflags -trimpath
- name: Run integration tests for command utility.
run: ./tests.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: git-ring
path: ./git-ring