Skip to content

build(deps): bump github.com/mattn/go-isatty from 0.0.17 to 0.0.18 #25

build(deps): bump github.com/mattn/go-isatty from 0.0.17 to 0.0.18

build(deps): bump github.com/mattn/go-isatty from 0.0.17 to 0.0.18 #25

Workflow file for this run

name: tests
on:
push:
branches: [master, main]
paths-ignore: ['**.md']
tags-ignore: ['**']
pull_request:
paths-ignore: ['**.md']
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
git-leaks:
name: GitLeaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with: {fetch-depth: 0}
- uses: gacts/gitleaks@v1 # Action page: <https://github.com/gacts/gitleaks>
lint:
name: Golang-CI (lint)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: golangci/golangci-lint-action@v3 # Action page: <https://github.com/golangci/golangci-lint-action>
with: {skip-pkg-cache: true, skip-build-cache: true}
test:
name: Unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ['1.17', '1.18', '1.19', '1.20']
steps:
- uses: gacts/setup-go-with-cache@v1
with: {go-version: '${{ matrix.go }}'}
- uses: actions/checkout@v3
with: {fetch-depth: 2} # Fixes codecov error 'Issue detecting commit SHA'
- run: go run ./examples/simple/
- run: go test -race -covermode=atomic -coverprofile ./coverage.txt ./...
- name: Upload Coverage report to CodeCov
continue-on-error: true
uses: codecov/codecov-action@v3 # https://github.com/codecov/codecov-action
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
fail_ci_if_error: false