Skip to content

Switching git.PlainOpen for git.PlainOpenWithOptions so that git-semver can be called from a subdirectory #58

Switching git.PlainOpen for git.PlainOpenWithOptions so that git-semver can be called from a subdirectory

Switching git.PlainOpen for git.PlainOpenWithOptions so that git-semver can be called from a subdirectory #58

Workflow file for this run

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