Files
terraform-provider-dokploy/.gitea/workflows/build.yml
Max Vojtkov 209079cf68
All checks were successful
build / build (push) Successful in 2m37s
release / release (push) Successful in 9m29s
Stop paying the unreachable cache server's timeout
setup-go caches by default. act_runner's built-in cache server binds to
an address job containers cannot route to, so every restore and save
blocks until it times out:

  Failed to restore: getCacheEntry failed: connect ETIMEDOUT 10.0.2.12:40789
  Failed to save:    reserveCache failed: connect ETIMEDOUT 10.0.2.12:40789

That was 634s of a 946s build. Disable caching until the runner's
cache.host points somewhere reachable, then turn it back on.
2026-08-09 13:57:18 +03:00

45 lines
1.2 KiB
YAML

name: build
on:
push:
branches: [main]
pull_request:
workflow_dispatch: {}
env:
GO_VERSION: "1.25.x"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
# setup-go caches by default, and this runner's built-in cache server
# is unreachable from job containers -- every restore and save hangs
# until it times out, which cost 634s of a 946s build. Re-enable once
# act_runner's cache.host points somewhere job containers can route.
cache: false
- name: Format
run: test -z "$(gofmt -l .)" || { gofmt -l .; echo "run gofmt -w ."; exit 1; }
- name: Vet
run: go vet ./...
- name: Build
run: go build ./...
- name: Test
run: go test ./... -count=1
# The bridge in pulumi-dokploy reaches the provider through `shim`, and
# `internal/provider` is not importable from outside this module. If that
# entry point ever stops compiling on its own, the Pulumi build breaks
# somewhere far away from the cause.
- name: The shim package still builds standalone
run: go build ./shim/