Skip to content

Update module github.com/stretchr/testify to v1.11.0 #159

Update module github.com/stretchr/testify to v1.11.0

Update module github.com/stretchr/testify to v1.11.0 #159

Workflow file for this run

name: Build
# Controls when the action will run.
on:
push:
pull_request:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
strategy:
matrix:
go: [ 1.16, 1.15, 1.14 ]
include:
- go: 1.16
lint: true
test: true
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
# Running golangci-lint
- name: Linting
if: matrix.lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.37.1
# Install Go
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
- name: Test
if: matrix.test
env:
DROPBOX_TOKEN: ${{ secrets.DROPBOX_TOKEN }}
run: |
apt-get update && apt-get install gcc -y
go test -parallel 20 -v -race -coverprofile=coverage.txt -covermode=atomic ./... -bench=./...
bash <(curl -s https://codecov.io/bash)
# For github to have a unique status check name
build-status:
needs: build
runs-on: ubuntu-20.04
steps:
- run: echo 'All good'