Skip to content

Merge pull request #55 from kazhuravlev/ka/isset #115

Merge pull request #55 from kazhuravlev/ka/isset

Merge pull request #55 from kazhuravlev/ka/isset #115

Workflow file for this run

name: Go
on:
pull_request:
push:
tags:
- '*'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: golangci/golangci-lint-action@v3
with:
version: v1.59.0
build:
name: Build on golang ${{ matrix.go_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go_version:
- "1.19"
- "1.20"
- "1.21"
- "1.22"
os: [ ubuntu-latest, macOS-latest ]
steps:
- name: Set up Go ${{ matrix.go_version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go_version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get dependencies
run: |
go mod download
- name: Build
run: |
go build -v -o /dev/null ./cmd/options-gen
- name: Test
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic -count=1 ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3