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