* add a bunch of test to oss * symlink and auto-detect dir * symlink the other direction * add pull_request_target logic * remove undertaker and add alembic validation * symlink doesn't work with gh actions and add validation workflow to ensure actions in cloud and oss are lockstep * sync these * specify extras selectively
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
name: Run Docker integration tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
pull_request_target:
|
|
branches:
|
|
- main
|
|
types: [labeled]
|
|
|
|
concurrency:
|
|
group: docker-tests-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
docker-tests:
|
|
# Run on pull_request OR on pull_request_target only when labeled "safe to test"
|
|
if: github.event_name == 'pull_request' || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe to test'))
|
|
uses: ./.github/workflows/reusable-test-workflow.yml
|
|
with:
|
|
test-type: 'docker'
|
|
install-args: '--extra dev --extra postgres --extra sqlite'
|
|
timeout-minutes: 15
|
|
use-docker: true
|
|
runner: '["self-hosted", "medium"]'
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
changed-files-pattern: |
|
|
apps/core/**
|
|
libs/config-core-deploy/**
|
|
.github/workflows/reusable-test-workflow.yml
|
|
.github/workflows/docker-integration-tests.yaml
|
|
secrets: inherit
|