mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
ci: refactor integration tests workflow
This commit is contained in:
parent
e548eeaa15
commit
9dfcecb565
2 changed files with 10 additions and 45 deletions
|
@ -1,40 +0,0 @@
|
||||||
name: Dev feature disabled compatibility integration test
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
package:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
INTEGRATION_TEST: true
|
|
||||||
DEV_FEATURES_ENABLED: false
|
|
||||||
steps:
|
|
||||||
- uses: logto-io/actions-package-logto-artifact@v2
|
|
||||||
with:
|
|
||||||
artifact-name: dev-feature-disabled-integration-test-${{ github.sha }}
|
|
||||||
pnpm-version: 9
|
|
||||||
|
|
||||||
run-logto:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
target: [api, experience, console]
|
|
||||||
needs: package
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
INTEGRATION_TEST: true
|
|
||||||
DEV_FEATURES_ENABLED: false
|
|
||||||
DB_URL: postgres://postgres:postgres@localhost:5432/postgres
|
|
||||||
steps:
|
|
||||||
- uses: logto-io/actions-run-logto-integration-tests@v3
|
|
||||||
with:
|
|
||||||
logto-artifact: dev-feature-disabled-integration-test-${{ github.sha }}
|
|
||||||
test-target: ${{ matrix.target }}
|
|
||||||
pnpm-version: 9
|
|
15
.github/workflows/integration-test.yml
vendored
15
.github/workflows/integration-test.yml
vendored
|
@ -4,7 +4,6 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- "push-action/**"
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
@ -13,15 +12,19 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
package:
|
package:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
# Run the integration tests with and without dev features enabled
|
||||||
|
dev-features-enabled: [true, false]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
INTEGRATION_TEST: true
|
INTEGRATION_TEST: true
|
||||||
DEV_FEATURES_ENABLED: true
|
DEV_FEATURES_ENABLED: ${{ matrix.dev-features-enabled }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: logto-io/actions-package-logto-artifact@v2
|
- uses: logto-io/actions-package-logto-artifact@v2
|
||||||
with:
|
with:
|
||||||
artifact-name: integration-test-${{ github.sha }}
|
artifact-name: integration-test-${{ github.sha }}-dev-features-${{ matrix.dev-features-enabled }}
|
||||||
pnpm-version: 9
|
pnpm-version: 9
|
||||||
|
|
||||||
run-logto:
|
run-logto:
|
||||||
|
@ -29,16 +32,18 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
target: [api, experience, console]
|
target: [api, experience, console]
|
||||||
|
# Run the integration tests with and without dev features enabled
|
||||||
|
dev-features-enabled: [true, false]
|
||||||
needs: package
|
needs: package
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
INTEGRATION_TEST: true
|
INTEGRATION_TEST: true
|
||||||
DEV_FEATURES_ENABLED: true
|
DEV_FEATURES_ENABLED: ${{ matrix.dev-features-enabled }}
|
||||||
DB_URL: postgres://postgres:postgres@localhost:5432/postgres
|
DB_URL: postgres://postgres:postgres@localhost:5432/postgres
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: logto-io/actions-run-logto-integration-tests@v3
|
- uses: logto-io/actions-run-logto-integration-tests@v3
|
||||||
with:
|
with:
|
||||||
logto-artifact: integration-test-${{ github.sha }}
|
logto-artifact: integration-test-${{ github.sha }}-dev-features-${{ env.DEV_FEATURES_ENABLED }}
|
||||||
test-target: ${{ matrix.target }}
|
test-target: ${{ matrix.target }}
|
||||||
pnpm-version: 9
|
pnpm-version: 9
|
||||||
|
|
Loading…
Reference in a new issue