Skip to content

chore(deps): bump golang.org/x/sync from 0.7.0 to 0.8.0 #856

chore(deps): bump golang.org/x/sync from 0.7.0 to 0.8.0

chore(deps): bump golang.org/x/sync from 0.7.0 to 0.8.0 #856

name: Go Pull Request
on:
pull_request:
branches: [ main ]
jobs:
test:
name: Vet and Test
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.21
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Configure github token
env:
TOKEN_USER: ${{ secrets.WORKFLOW_TOKEN_USER }}
TOKEN: ${{ secrets.WORKFLOW_TOKEN}}
run: |
git config --global url."https://${TOKEN_USER}:${TOKEN}@github.com".insteadOf "https://github.com"
- name: Get dependencies
run: |
git config -l --global
go get -v -t -d ./...
- name: Vet
run: |
go vet ./...
- name: Test
run: go test -v ./...
- name: Test Race Conditions
run: go test -race -v ./...
build:
name: Build
needs: test
runs-on: ubuntu-20.04
strategy:
matrix:
os: [linux]
arch: [amd64]
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.21
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Configure github token
env:
TOKEN_USER: ${{ secrets.WORKFLOW_TOKEN_USER }}
TOKEN: ${{ secrets.WORKFLOW_TOKEN}}
run: |
git config --global url."https://${TOKEN_USER}:${TOKEN}@github.com".insteadOf "https://github.com"
- name: Get dependencies
run: |
git config -l --global
go get -v -t -d ./...
- name: Build
run: |
go build -v .