Skip to content

feat(deps): bump github.com/gkampitakis/go-snaps from 0.5.4 to 0.5.6 #136

feat(deps): bump github.com/gkampitakis/go-snaps from 0.5.4 to 0.5.6

feat(deps): bump github.com/gkampitakis/go-snaps from 0.5.4 to 0.5.6 #136

Workflow file for this run

name: Tests
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
defaults:
run:
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || '/bin/bash --noprofile --norc -Eeuxo pipefail {0}' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Read Go version from go.mod
run: echo "CI_GO_VERSION=$(grep '^go ' go.mod | awk '{print $2}')" >> "${GITHUB_ENV}"
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.CI_GO_VERSION }}
- name: Install dependencies
run: go mod tidy
- name: Run tests
continue-on-error: ${{ matrix.os == 'windows-latest' && true || false }}
run: go test $(go list ./... | grep -v /junit2html/example) -race -coverprofile=coverage.out
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.os }},go${{ env.CI_GO_VERSION }}
fail_ci_if_error: ${{ matrix.os == 'windows-latest' && 'false' || github.repository_owner == 'stdedos' && 'true' || 'false' }}