-
Notifications
You must be signed in to change notification settings - Fork 219
96 lines (84 loc) · 2.18 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Integration Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
GO_VERSION: "1.23"
DAGGER_VERSION: "0.13.5"
concurrency:
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
cli:
name: CLI Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Run CLI Tests
uses: dagger/dagger-for-github@v7
with:
verb: call
version: ${{ env.DAGGER_VERSION }}
args: test --source .:default cli
test:
name: Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
test:
[
"api/sqlite",
"api/libsql",
"api/postgres",
"api/mysql",
"api/cockroach",
"api/cache",
"api/cachetls",
"api/snapshot",
"api/ofrep",
"fs/git",
"fs/local",
"fs/s3",
"fs/oci",
"fs/azblob",
"fs/gcs",
"import/export",
"authn",
"authz",
"audit/webhook",
"audit/webhooktmpl",
]
steps:
- uses: actions/checkout@v4
- run: echo "INTEGRATION_TEST_NAME=${{ matrix.test }}" | tr '/' '-' >> $GITHUB_ENV
- name: Run Integration Tests
uses: dagger/dagger-for-github@v7
with:
verb: call
version: ${{ env.DAGGER_VERSION }}
args: test --source .:default integration --cases ${{ matrix.test }}
- name: Upload Flipt Service Logs
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: "build-logs-${{ env.INTEGRATION_TEST_NAME }}"
path: "build/logs"
retention-days: 5
ui:
name: UI Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Run UI Tests
uses: dagger/dagger-for-github@v7
with:
verb: call
version: ${{ env.DAGGER_VERSION }}
args: test --source .:default ui