Skip to content

Merge pull request #3 from maogou/develop #15

Merge pull request #3 from maogou/develop

Merge pull request #3 from maogou/develop #15

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main","develop" ]
pull_request:
branches: [ "main","develop" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: ['1.17','1.18','1.20','1.21']
os: [ ubuntu-latest, windows-latest, macOS-latest ]
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -count=1 ./...