Skip to content

Commit

Permalink
use mage and support multi os and go version
Browse files Browse the repository at this point in the history
  • Loading branch information
dhia-gharsallaoui committed Sep 22, 2022
1 parent 37f58d4 commit 28622ef
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,33 @@ on:
jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.17, 1.18, 1.19]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Install mage
run: |
git clone https://github.com/magefile/mage
cd mage
go run bootstrap.go install
cd ./..
- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
run: mage test ./...

- name: Vet
run: mage vet ./...

golangci:
name: lint
Expand Down

0 comments on commit 28622ef

Please sign in to comment.