Bump golang.org/x/sync from 0.4.0 to 0.8.0 #885
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: Go | |
on: | |
push: | |
tags: | |
- '*' | |
branches: | |
- master | |
- 'v1' | |
pull_request: | |
branches: | |
- master | |
- 'v1' | |
jobs: | |
golangci: | |
strategy: | |
matrix: | |
go-version: [1.16.x, 1.17.x] | |
os: [macos-latest, ubuntu-latest] | |
name: lint | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | |
version: latest | |
build: | |
strategy: | |
matrix: | |
go-version: [ 1.16.x, 1.17.x ] | |
os: [ macos-latest, ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Tests | |
run: make test-unit | |
- name: Update code coverage | |
run: bash <(curl -s https://codecov.io/bash) | |
- name: Build | |
run: go build -v ./... | |
release: | |
needs: [golangci,build] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: release | |
uses: goreleaser/goreleaser-action@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
version: latest | |
args: release --rm-dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |