build(deps): bump github.com/fatih/color from 1.15.0 to 1.16.0 #116
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: gommander-ci-workflow | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Setup go environment" | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: Unit Test | |
run: go test | |
- name: Run golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: latest | |
args: --verbose | |
- name: Open Automated Issue on failure | |
if: failure() | |
uses: alialaa/issue-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
title: Automated issue for commit ${{github.sha}} | |
body: This issue was automatically created by the gha workflow ${{github.workflow}} for commit ${{github.sha}} | |
assignees: | | |
ndaba1 | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Setup go environment" | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: Generate coverage report | |
run: go test -race -coverprofile=coverage.out -covermode=atomic | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 |