Skip to content

fix(deps): update module go.yaml.in/yaml/v4 to v4.0.0-rc.6 (#78) #326

fix(deps): update module go.yaml.in/yaml/v4 to v4.0.0-rc.6 (#78)

fix(deps): update module go.yaml.in/yaml/v4 to v4.0.0-rc.6 (#78) #326

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
hadolint:
name: hadolint
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
- run: hadolint Dockerfile
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
- run: golangci-lint run
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
- run: go build -o sandbox .
unit-test:
name: Unit Test
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
- run: go test -v ./...
e2e-test:
name: E2E Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm]
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
- name: Build with cache
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
with:
context: .
load: true
tags: sandbox:latest
cache-from: type=gha,scope=ci-${{ matrix.os }}
cache-to: type=gha,scope=ci-${{ matrix.os }},mode=max
- name: Start sandbox service
run: docker compose up -d
- name: Wait for service to be ready
run: |
for i in $(seq 1 30); do
if curl -s -o /dev/null http://localhost:8080/; then
echo "Service is ready"
exit 0
fi
echo "Waiting for service... ($i/30)"
sleep 2
done
echo "Service failed to start"
exit 1
- name: Run E2E tests
run: go test -v -tags e2e -parallel 2 ./e2e/...
- name: Show logs on failure
if: failure()
run: docker compose logs