mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
735dcb67a8
* feat: refactor the integration-test ci job using custom interaction - refactor the integration-test ci job using custom action - add db alteration integration-tests * fix: fix the detection git diff fix the detection git diff * fix: should not throw error if grep statement return empty should not throw error if grep statement return empty * feat: update the action reference update the action reference * chore: update the integration test action ref update the integration test action ref
40 lines
918 B
YAML
40 lines
918 B
YAML
name: Integration Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- "push-action/**"
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
package:
|
|
runs-on: buildjet-4vcpu-ubuntu-2204
|
|
env:
|
|
INTEGRATION_TEST: true
|
|
|
|
steps:
|
|
- uses: logto-io/actions-package-logto-artifact@v1.0.0
|
|
with:
|
|
artifact-name: integration-test-${{ github.sha }}
|
|
|
|
run-logto:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: [api, experience, console]
|
|
needs: package
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
INTEGRATION_TEST: true
|
|
DB_URL: postgres://postgres:postgres@localhost:5432/postgres
|
|
|
|
steps:
|
|
- uses: logto-io/actions-run-logto-integration-tests@v1.0.0
|
|
with:
|
|
logto_artifact: integration-test-${{ github.sha }}
|
|
test_target: ${{ matrix.target }}
|