-
Notifications
You must be signed in to change notification settings - Fork 205
144 lines (126 loc) · 3.66 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
name: Integration Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
GO_VERSION: "1.22"
DAGGER_VERSION: "0.13.3"
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: Free Disk Space
uses: jlumbroso/[email protected]
with:
# Runs quick, run rm in background
tool-cache: true
# These run slower as use apt to uninstall packages
# Turned on by default, so we disable them
android: false
dotnet: false
haskell: false
large-packages: false
docker-images: false
swap-storage: false
- name: Run CLI Tests
uses: dagger/dagger-for-github@v6
with:
verb: call
version: ${{ env.DAGGER_VERSION }}
args: test --source .:default cli
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
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
- name: Free Disk Space
uses: jlumbroso/[email protected]
with:
# Runs quick, run rm in background
tool-cache: true
# These run slower as use apt to uninstall packages
# Turned on by default, so we disable them
android: false
dotnet: false
haskell: false
large-packages: false
docker-images: false
swap-storage: false
- run: echo "INTEGRATION_TEST_NAME=${{ matrix.test }}" | tr '/' '-' >> $GITHUB_ENV
- name: Run Integration Tests
uses: dagger/dagger-for-github@v6
with:
verb: call
version: ${{ env.DAGGER_VERSION }}
args: test --source .:default integration --cases ${{ matrix.test }}
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
- 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: Free Disk Space
uses: jlumbroso/[email protected]
with:
# Runs quick, run rm in background
tool-cache: true
# These run slower as use apt to uninstall packages
# Turned on by default, so we disable them
android: false
dotnet: false
haskell: false
large-packages: false
docker-images: false
swap-storage: false
- name: Run UI Tests
uses: dagger/dagger-for-github@v6
with:
verb: call
version: ${{ env.DAGGER_VERSION }}
args: test --source .:default ui
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}