Skip to content

Fix PRs made from forks. (#24) #120

Fix PRs made from forks. (#24)

Fix PRs made from forks. (#24) #120

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- name: Unit tests
run: go test -coverprofile=cover.out ./...
- name: Modver
if: ${{ github.event_name == 'pull_request' }}
run: go run ./cmd/modver -pr https://github.com/${{ github.repository }}/pull/${{ github.event.number }} -token ${{ github.token }} -pretty
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: cover.out