Skip to content

Commit 5e8c0be

Browse files
committed
Improve cache
1 parent d7bb7c2 commit 5e8c0be

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.dagger/src/index.ts

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class AtomicServer {
4040
this.docsPublish(netlifyAuthToken),
4141
this.lintBrowser(),
4242
this.testBrowser(),
43-
this.ee(netlifyAuthToken),
43+
this.endToEnd(netlifyAuthToken),
4444
this.rustTest(),
4545
this.rustClippy(),
4646
this.rustFmt(),
@@ -215,13 +215,7 @@ export class AtomicServer {
215215

216216
@func()
217217
rustClippy(): Promise<string> {
218-
const source = this.source;
219-
const rustContainer = dag
220-
.container()
221-
.from(RUST_IMAGE)
222-
.withExec(["rustup", "component", "add", "clippy"])
223-
.withMountedDirectory("/code", source)
224-
.withWorkdir("/code");
218+
const rustContainer = this.rustBuild();
225219

226220
return rustContainer
227221
.withExec([
@@ -236,13 +230,7 @@ export class AtomicServer {
236230

237231
@func()
238232
rustFmt(): Promise<string> {
239-
const source = this.source;
240-
const rustContainer = dag
241-
.container()
242-
.from(RUST_IMAGE)
243-
.withExec(["rustup", "component", "add", "rustfmt"])
244-
.withMountedDirectory("/code", source)
245-
.withWorkdir("/code");
233+
const rustContainer = this.rustBuild();
246234

247235
return rustContainer.withExec(["cargo", "fmt", "--check"]).stdout();
248236
}
@@ -263,7 +251,7 @@ export class AtomicServer {
263251
}
264252

265253
@func()
266-
ee(@argument() netlifyAuthToken: Secret): Promise<string> {
254+
endToEnd(@argument() netlifyAuthToken: Secret): Promise<string> {
267255
const e2eSource = this.source.directory("browser/e2e");
268256

269257
// Setup Playwright container - debug and fix package manager

0 commit comments

Comments
 (0)