Skip to content

build(deps): bump softprops/action-gh-release from 1 to 2 #252

build(deps): bump softprops/action-gh-release from 1 to 2

build(deps): bump softprops/action-gh-release from 1 to 2 #252

Workflow file for this run

name: action-tests
on:
pull_request:
paths:
- 'go.mod'
- '**.go'
- '**.yml'
push:
paths:
- '**.go'
- 'go.mod'
- '**.yml'
# https://github.com/actions
jobs:
test:
name: Test on go ${{ matrix.go_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go_version: [1.17, 1.18, 1.19, '1.20']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Go Faster
uses: WillAbides/setup-go-faster@v1.14.0
timeout-minutes: 3
with:
go-version: ${{ matrix.go_version }}
- name: Display Env
# run: env | grep -i term # error on exec
run: env
- name: Run unit tests
env:
COLOR_DEBUG_MODE: on
# run: go test -v -cover ./...
# must add " for profile.cov on Windows OS
run: go test -coverprofile="profile.cov" ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
path-to-profile: profile.cov
flag-name: Go-${{ matrix.go_version }}
parallel: true
# notifies that all test jobs are finished.
# https://github.com/shogo82148/actions-goveralls
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true