forked from dagger/dagger
-
Notifications
You must be signed in to change notification settings - Fork 0
181 lines (166 loc) · 6.24 KB
/
engine-and-cli.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
name: Engine & CLI
on:
push:
branches: ["main"]
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
# Enable manual trigger for easy debugging
workflow_dispatch:
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-16c' || 'ubuntu-latest' }}"
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: "engine lint"
uses: ./.github/actions/call
with:
function: "engine lint"
- name: "scripts lint"
uses: ./.github/actions/call
with:
function: "scripts lint"
test-publish:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-16c' || 'ubuntu-latest' }}"
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: "test publish cli"
uses: ./.github/actions/call
with:
function: "cli test-publish"
- name: "test publish engine"
uses: ./.github/actions/call
with:
function: "engine publish --image=dagger-engine.dev --tag=main --dry-run"
scan-engine:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-8c' || 'ubuntu-latest' }}"
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: "scan"
uses: ./.github/actions/call
with:
function: "engine scan"
# TEMPORARILY DISABLED. Context: https://github.com/dagger/dagger/pull/8998#issuecomment-2491426455
# test:
# runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-16c-st' || 'ubuntu-latest' }}"
# timeout-minutes: 30
# steps:
# - uses: actions/checkout@v4
# - name: "test"
# uses: ./.github/actions/call
# with:
# function: "test all --race=true --parallel=16"
# upload-logs: true
test-modules:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-16c-st' || 'ubuntu-latest' }}"
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "test"
uses: ./.github/actions/call
with:
function: "test specific --run=TestModule --race=true --parallel=16"
upload-logs: true
test-module-runtimes:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-16c-st' || 'ubuntu-latest' }}"
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "test"
uses: ./.github/actions/call
with:
function: "test specific --run='TestGo|TestPython|TestTypescript|TestElixir|TestPHP' --race=true --parallel=16"
upload-logs: true
test-cli-engine:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-16c-st' || 'ubuntu-latest' }}"
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "test"
uses: ./.github/actions/call
with:
function: "test specific --run='TestCLI|TestEngine' --race=true --parallel=16"
upload-logs: true
test-provision:
# HACK: this is split out, since these tests require cgroupsv2
# runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-16c-st' || 'ubuntu-latest' }}"
runs-on: "ubuntu-latest"
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "test"
uses: ./.github/actions/call
with:
function: "test specific --run='TestProvision' --race=true --parallel=1"
upload-logs: true
test-everything-else:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-16c-st' || 'ubuntu-latest' }}"
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "test"
uses: ./.github/actions/call
with:
function: "test specific --skip='TestModule|TestGo|TestPython|TestTypescript|TestElixir|TestPHP|TestCLI|TestEngine|TestProvision' --race=true --parallel=16"
upload-logs: true
# Run Engine tests in dev Engine so that we can spot integration failures early
# Only run a subset of important test cases since we just need to verify basic
# functionality rather than repeat every test already run in the other targets.
#
# TEMPORARILY DISABLED. Context: https://github.com/dagger/dagger/pull/8998#issuecomment-2491426455
# testdev:
# runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-32c-dind-st' || 'ubuntu-latest' }}"
# timeout-minutes: 30
# steps:
# - uses: actions/checkout@v4
# - name: "testdev"
# uses: ./.github/actions/call
# with:
# function: "test specific --run='TestModule|TestGo|TestPython|TestTypescript|TestElixir|TestPHP|TestContainer' --skip='TestDev' --race=true --parallel=16"
# dev-engine: true
# upload-logs: true
testdev-modules:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-32c-dind-st' || 'ubuntu-latest' }}"
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "testdev"
uses: ./.github/actions/call
with:
function: "test specific --run='TestModule' --skip='TestDev' --race=true --parallel=16"
dev-engine: true
upload-logs: true
testdev-module-runtimes:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-32c-dind-st' || 'ubuntu-latest' }}"
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "testdev"
uses: ./.github/actions/call
with:
function: "test specific --run='TestGo|TestPython|TestTypescript|TestElixir|TestPHP' --skip='TestDev' --race=true --parallel=16"
dev-engine: true
upload-logs: true
testdev-container:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-15-1-32c-dind-st' || 'ubuntu-latest' }}"
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "testdev"
uses: ./.github/actions/call
with:
function: "test specific --run='TestContainer' --skip='TestDev' --race=true --parallel=16"
dev-engine: true
upload-logs: true