Skip to content

Merge pull request #34 from yobeonline/open_with_options #59

Merge pull request #34 from yobeonline/open_with_options

Merge pull request #34 from yobeonline/open_with_options #59

name: lint-and-test
on:
push:
branches: [main]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: ^1.20
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ^1.20
id: go
- name: Download dependencies
run: go mod download
- name: Test
run: go test -v -coverprofile=coverage.txt -covermode=count ./...
- uses: codecov/codecov-action@v3