-
-
Notifications
You must be signed in to change notification settings - Fork 423
40 lines (34 loc) · 910 Bytes
/
integration-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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@v2
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@v2
with:
logto_artifact: integration-test-${{ github.sha }}
test_target: ${{ matrix.target }}