mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
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:
@@ -9,7 +9,11 @@ permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
test:
|
||||
uses: ./.github/workflows/test.yaml
|
||||
|
||||
release:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user