-
Notifications
You must be signed in to change notification settings - Fork 218
113 lines (94 loc) · 2.45 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
name: Integration Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
GO_VERSION: "1.21"
DAGGER_VERSION: "0.8.3"
jobs:
cli:
name: CLI Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true
- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=$DAGGER_VERSION sh
- name: Install Mage
uses: magefile/mage-action@v3
with:
install-only: true
- name: Run CLI Tests
run: mage dagger:run test:cli
test:
name: Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
test:
[
"api",
"api/cache",
"fs/git",
"fs/local",
"fs/s3",
"fs/oci",
"import/export",
]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true
- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=$DAGGER_VERSION sh
- name: Install Mage
uses: magefile/mage-action@v3
with:
install-only: true
- name: Run Integration Tests
run: mage dagger:run "test:integration ${{ matrix.test }}"
- name: Upload Flipt Service Logs
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: Flipt Service Logs
path: build/logs
retention-days: 5
ui:
name: UI Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true
- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=$DAGGER_VERSION sh
- name: Install Mage
uses: magefile/mage-action@v3
with:
install-only: true
- name: Run UI Tests
run: mage dagger:run test:ui