Skip to content

Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 #196

Bump github.com/stretchr/testify from 1.8.4 to 1.9.0

Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 #196

Workflow file for this run

name: imageupsizer
on: push
jobs:
build:
name: imageupsizer build
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
check-latest: true
cache: true
go-version: "1.20"
- name: Build & Test
run: |
go clean -r ./...
go mod tidy
go build -v -ldflags="-s -w" ./...
# go test -v -race -count 1 -parallel 5 -covermode=atomic -coverprofile="coverage.out" ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
verbose: true # optional (default = false)
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout=5m
- name: Govulncheck
uses: kmulvey/govulncheck-action@v1.1.2
release:
name: imageupsizer release
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
- name: Set up Go
uses: actions/setup-go@v3
with:
check-latest: true
cache: true
go-version: "1.20"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --config .goreleaser.yaml --clean
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}