Some checks failed
CI / goreleaser-lint (pull_request) Successful in 13s
CI / format (pull_request) Successful in 3m4s
CI / lint (pull_request) Successful in 3m58s
CI / e2e (pull_request) Failing after 1m48s
CI / test (pull_request) Successful in 5m42s
CI / build (pull_request) Successful in 3m8s
DinD is required for testcontainers but breaks apt-based --with-deps; install chromium only after the daemon is ready. Co-authored-by: Cursor <cursoragent@cursor.com>
87 lines
2.1 KiB
YAML
87 lines
2.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: docker
|
|
container: git.nakama.town/fmartingr/ci-images/ci-base:1.1.0
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: make format
|
|
- run: git diff --exit-code
|
|
|
|
goreleaser-lint:
|
|
runs-on: docker
|
|
container: git.nakama.town/fmartingr/ci-images/ci-base:1.1.0
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/goreleaser-action@v6.4.0
|
|
with:
|
|
args: check
|
|
|
|
lint:
|
|
runs-on: docker
|
|
container: git.nakama.town/fmartingr/ci-images/ci-base:1.1.0
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: make ci-lint
|
|
|
|
test:
|
|
runs-on: docker
|
|
container: git.nakama.town/fmartingr/ci-images/ci-base:1.1.0
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: make test
|
|
|
|
e2e:
|
|
runs-on: docker
|
|
container: git.nakama.town/fmartingr/ci-images/ci-base:1.1.0
|
|
services:
|
|
dind:
|
|
image: docker:27-dind
|
|
env:
|
|
DOCKER_TLS_CERTDIR: ""
|
|
options: --privileged
|
|
env:
|
|
DOCKER_HOST: tcp://dind:2375
|
|
TESTCONTAINERS_RYUK_DISABLED: true
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version-file: e2e/go.mod
|
|
- name: Wait for Docker
|
|
run: |
|
|
for i in $(seq 1 60); do
|
|
docker info >/dev/null 2>&1 && exit 0
|
|
sleep 1
|
|
done
|
|
echo "Docker daemon not ready" >&2
|
|
exit 1
|
|
- name: Install Playwright browsers
|
|
run: go run github.com/playwright-community/playwright-go/cmd/playwright@v0.5200.1 install chromium
|
|
- run: make e2e
|
|
|
|
build:
|
|
runs-on: docker
|
|
container: git.nakama.town/fmartingr/ci-images/ci-base:1.1.0
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: make build
|