2022-05-10 15:29:53 +08:00
|
|
|
name: Integration Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-07-01 20:33:08 +08:00
|
|
|
branches:
|
|
|
|
- master
|
2022-09-05 17:49:11 +08:00
|
|
|
- "push-action/**"
|
2022-06-27 16:38:39 +08:00
|
|
|
pull_request:
|
2022-06-17 23:58:29 +08:00
|
|
|
|
2022-07-26 16:12:34 +08:00
|
|
|
concurrency:
|
2023-01-19 11:22:17 +08:00
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
2022-06-17 23:58:29 +08:00
|
|
|
cancel-in-progress: true
|
2022-05-10 15:29:53 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
package:
|
2023-09-14 17:28:00 +08:00
|
|
|
runs-on: buildjet-4vcpu-ubuntu-2204
|
2023-09-15 15:43:03 +08:00
|
|
|
env:
|
|
|
|
INTEGRATION_TEST: true
|
|
|
|
|
2022-05-10 15:29:53 +08:00
|
|
|
steps:
|
2023-10-23 11:02:33 +08:00
|
|
|
- uses: logto-io/actions-package-logto-artifact@v1.0.0
|
2022-05-10 15:29:53 +08:00
|
|
|
with:
|
2023-10-23 11:02:33 +08:00
|
|
|
artifact-name: integration-test-${{ github.sha }}
|
2022-07-26 16:12:34 +08:00
|
|
|
|
2022-05-10 15:29:53 +08:00
|
|
|
run-logto:
|
|
|
|
strategy:
|
2023-03-28 12:00:28 +08:00
|
|
|
fail-fast: false
|
2022-05-10 15:29:53 +08:00
|
|
|
matrix:
|
2023-09-14 17:28:00 +08:00
|
|
|
target: [api, experience, console]
|
2023-03-06 00:48:50 +08:00
|
|
|
needs: package
|
2022-11-07 23:11:21 +08:00
|
|
|
runs-on: ubuntu-latest
|
2023-03-06 00:48:50 +08:00
|
|
|
env:
|
|
|
|
INTEGRATION_TEST: true
|
2023-05-30 10:50:06 +08:00
|
|
|
DB_URL: postgres://postgres:postgres@localhost:5432/postgres
|
2022-05-10 15:29:53 +08:00
|
|
|
|
|
|
|
steps:
|
2023-10-23 11:02:33 +08:00
|
|
|
- uses: logto-io/actions-run-logto-integration-tests@v1.0.0
|
2022-05-10 15:29:53 +08:00
|
|
|
with:
|
2023-10-23 11:02:33 +08:00
|
|
|
logto_artifact: integration-test-${{ github.sha }}
|
|
|
|
test_target: ${{ matrix.target }}
|