Skip to content

gomod: bump golang.org/x/sync from 0.5.0 to 0.6.0 #401

gomod: bump golang.org/x/sync from 0.5.0 to 0.6.0

gomod: bump golang.org/x/sync from 0.5.0 to 0.6.0 #401

Workflow file for this run

name: Go Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
id-token: write
contents: read
jobs:
build:
name: Build and tests
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 6
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go_version: ['1.20', '1.21']
fail-fast: false
steps:
- name: Set up Go version
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::264319671630:role/GitHubActionsOidc
unset-current-credentials: true
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Build
run: go build -v ./...
- name: Unit Tests
run: go test -v -short ./...
- name: Integration Tests
run: |
GITHUB_SHA_SHORT=$(git rev-parse --short $GITHUB_SHA)
go test -v -timeout 30m -run Integration ./... -args -ledger_suffix ${{ strategy.job-index }}-$GITHUB_SHA_SHORT
shell: bash
check:
name: Perform style and linter check
runs-on: ubuntu-latest
steps:
- name: Set up Go version
uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- run: goimports -w .
- run: go mod tidy
# If there are any diffs from goimports or go mod tidy, fail.
- name: Verify no changes from goimports and go mod tidy
run: |
if [ -n "$(git status --porcelain)" ]; then
exit 1
fi
- run: go vet ./...
- uses: dominikh/staticcheck-action@v1.3.0
with:
version: "2022.1"
install-go: false