Skip to content

fix: resolve git repo root so revdiff works from subdirectories #22

fix: resolve git repo root so revdiff works from subdirectories

fix: resolve git repo root so revdiff works from subdirectories #22

Workflow file for this run

name: build
on:
push:
branches:
tags:
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: set up go 1.26
uses: actions/setup-go@v6
with:
go-version: "1.26"
id: go
- name: checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: build and test
run: |
go test -race -timeout=100s -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./...
grep -v -E "_mock.go|/mocks/" $GITHUB_WORKSPACE/profile.cov_tmp > $GITHUB_WORKSPACE/profile.cov
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: latest
- name: install goveralls
run: go install github.com/mattn/goveralls@latest
- name: submit coverage
run: $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}