ci: add docker sandbox CI jobs and release test gate

- Add workflow_call trigger to test.yaml for reusable workflow support
- Add docker-sandbox-offline and docker-sandbox-online CI jobs
- Gate release.yaml behind test.yaml so all tests must pass before
  GoReleaser runs
This commit is contained in:
Willie
2026-02-07 23:13:08 +08:00
parent 080e29e0ff
commit 3ec3c3060a
2 changed files with 24 additions and 0 deletions
+4
View File
@@ -9,7 +9,11 @@ permissions:
contents: write
jobs:
test:
uses: ./.github/workflows/test.yaml
release:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
+20
View File
@@ -5,6 +5,7 @@ on:
branches: [main]
pull_request:
branches: [main]
workflow_call:
jobs:
unit-test:
@@ -47,3 +48,22 @@ jobs:
run: go test -v -race ./tests/integration/...
env:
SKILLSHARE_TEST_BINARY: ${{ github.workspace }}/bin/skillshare
docker-sandbox-offline:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker Sandbox Tests (Offline)
run: ./scripts/test_docker.sh
docker-sandbox-online:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker Sandbox Tests (Online)
run: ./scripts/test_docker_online.sh