Update module github.com/wabarc/helper to v0.0.0-20230418130954-be7440352bcb - autoclosed #42
Workflow file for this run
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: Testing | |
on: | |
push: | |
branches: | |
- "*" | |
paths: | |
- "**/*.go" | |
- "go.mod" | |
- "go.sum" | |
- ".github/workflows/testing.yml" | |
pull_request: | |
branches: [ main ] | |
types: [ opened, synchronize, reopened ] | |
paths: | |
- "**/*.go" | |
- "go.mod" | |
- "go.sum" | |
- ".github/workflows/testing.yml" | |
env: | |
MallocNanoZone: 0 | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Testing | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
go: [ "1.12", "1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20" ] | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Set up Chocolatey | |
if: matrix.os == 'windows-latest' | |
uses: crazy-max/ghaction-chocolatey@v1 | |
with: | |
args: -h | |
- name: Install Wget | |
if: matrix.os == 'windows-latest' | |
run: | | |
choco install wget | |
wget --help | |
- name: Check out code base | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Get dependencies | |
run: | | |
go get -v -t -d ./... | |
- name: Run test | |
run: | | |
make test | |
make test-cover | |
- name: Upload coverage | |
uses: actions/upload-artifact@v2 | |
with: | |
name: coverage-${{ matrix.os }}-go${{ matrix.go }} | |
path: coverage.* | |
- name: Run integration test | |
run: make test-integration |