fix: Fix fork-related issues with the release action (#4) #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
push: | |
branches: | |
- master | |
- "release/**" | |
pull_request: | |
types: ['opened', 'synchronize'] | |
paths: | |
- '**.go' | |
- go.mod | |
- '.github/workflows/**' | |
env: | |
GOPROXY: https://proxy.golang.org,direct | |
GO_VERSION: "1.18" | |
jobs: | |
unit-test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Setup cookies | |
run: | | |
cat /etc/issue | |
bash scripts/gogetcookie.sh | |
- name: Running unit tests | |
run: make test | |