Skip to content

Merge pull request #4 from mdm-code/fix-flag-name #17

Merge pull request #4 from mdm-code/fix-flag-name

Merge pull request #4 from mdm-code/fix-flag-name #17

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
go-version: [ '1.19', '1.21' ]
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
go version
go install golang.org/x/lint/golint@latest
- name: Build
run: make build
- name: Test
run: go test -v -coverprofile coverage.txt -covermode atomic ./...
- name: Coverage
uses: codecov/codecov-action@v2.1.0