Skip to content

Allow using a different address with the -addr flag #19

Allow using a different address with the -addr flag

Allow using a different address with the -addr flag #19

Workflow file for this run

name: Run all Go tests
on:
pull_request:
jobs:
go-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install devbox
uses: jetify-com/[email protected]
with:
enable-cache: 'true'
- name: Prepare Go build cache
id: go-cache-paths
run: |
devbox run -- echo "go_build_cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT
devbox run -- echo "go_mod_cache=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
# Cache go build cache, used to speedup go test
- name: Go Build Cache
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go_build_cache }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
# Cache go mod cache, used to speedup builds
- name: Go Mod Cache
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go_mod_cache }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- name: Run the tests
if: success()
run: devbox run -- go test -v ./...