Skip to content

Update actions/setup-go action to v5 #39

Update actions/setup-go action to v5

Update actions/setup-go action to v5 #39

Workflow file for this run

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@v5
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