build(deps): bump github.com/mikefarah/yq/v4 from 4.34.1 to 4.34.2 (#… #682
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: Test | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**/*.go" | |
- "go.mod" | |
- "go.sum" | |
- "Makefile" | |
- ".github/workflows/test.yaml" | |
pull_request: | |
types: [opened, reopened, synchronize] | |
branches: | |
- main | |
paths: | |
- "**/*.go" | |
- "go.mod" | |
- "go.sum" | |
- "Makefile" | |
- ".github/workflows/test.yaml" | |
env: | |
GO_VERSION: "1.20.4" | |
jobs: | |
test: | |
name: Unit Testing | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Setup Go Environment | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
id: go | |
- name: Checkout Source Code | |
uses: actions/checkout@v3 | |
- name: Go Get dependencies | |
run: go get -v -t -d ./... | |
- name: Go Test | |
run: make test TEST_FLAGS="-coverprofile=coverage.txt -covermode=atomic" | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
file: ./coverage.txt |