fix issue setting complex options via flags #145
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: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
go: [ '1.18' ] | |
os: [ 'ubuntu-latest' ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Go Test | |
run: go test -v ./... | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- uses: actions/checkout@v3 | |
- name: install golangci-lint | |
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.46.2 | |
- name: run golangci-lint | |
run: golangci-lint run |