Skip to content

Commit 006d9f2

Browse files
committed
.
1 parent a35fa46 commit 006d9f2

File tree

4 files changed

+36
-18
lines changed

4 files changed

+36
-18
lines changed

website/docs/modules/ROOT/pages/cli/installation-ide.adoc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,16 @@ IDE fails to import your Mill project
387387

388388
== Setting up Mill in CI
389389

390+
=== CI Bootstrap Scripts
391+
390392
Due to Mill's usage of xref:#_bootstrap_scripts[Bootstrap Scripts], you typically do not
391393
need to setup anything in your CI system to make Mill work. Any Mill project should be
392394
buildable via `./mill` on your CI machines without needing to first install Java, Mill,
393395
or other dependencies, and the `./mill` bootstrap script will download these dependencies
394396
as necessary.
395397

398+
=== FORCE_COLOR
399+
396400
One thing that you should set up manually is to enable a https://force-color.org/[FORCE_COLOR]
397401
environment variable in your CI system. For example, in Github Actions this can be configured
398402
in your workflow `.yml` file via:
@@ -415,6 +419,38 @@ image::basic/ForceColor0.png[]
415419

416420
image::basic/ForceColor1.png[]
417421

422+
=== Re-using the `out/` Folder
423+
424+
Mill caches its outputs locally in the xref:fundamentals/out-dir.adoc[out/ folder]. You
425+
can preserve this `out/` folder between CI workers, e.g. to allow a subsequent CI worker
426+
to use a previous worker's cached results, or to perform initial compilation on one worker
427+
then share the compiled output with downstream workers.
428+
429+
For example, for Github Actions you may configure `out/` folder uploading via
430+
431+
```yaml
432+
- uses: actions/upload-artifact@v4
433+
with:
434+
name: build-out
435+
path: out/
436+
```
437+
438+
And downloading via
439+
440+
```yaml
441+
- uses: actions/download-artifact@v4
442+
with:
443+
name: build-out
444+
path: out/
445+
```
446+
447+
448+
=== Github Actions Test Reports
449+
450+
If you use Github Actions for CI, you can use https://github.com/mikepenz/action-junit-report in
451+
your pipeline to render the generated `test-report.xml` files nicely on Github. See
452+
https://github.com/com-lihaoyi/mill/pull/4218/files for an example integration
453+
418454
== Using Mill without access to Maven Central
419455

420456
Under some circumstances (e.g. corporate firewalls), you may not have access maven central.

website/docs/modules/ROOT/pages/javalib/testing.adoc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,3 @@ include::partial$example/javalib/testing/6-test-grouping.adoc[]
3030
=== Test Grouping & Test Parallelism together
3131

3232
include::partial$example/javalib/testing/7-test-group-parallel.adoc[]
33-
34-
== Github Actions Test Reports
35-
36-
If you use Github Actions for CI, you can use https://github.com/mikepenz/action-junit-report in
37-
your pipeline to render the generated `test-report.xml` files nicely on Github. See
38-
https://github.com/com-lihaoyi/mill/pull/4218/files for an example integration

website/docs/modules/ROOT/pages/kotlinlib/testing.adoc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,3 @@ include::partial$example/kotlinlib/testing/6-test-grouping.adoc[]
3030
=== Test Grouping & Test Parallelism together
3131

3232
include::partial$example/kotlinlib/testing/7-test-group-parallel.adoc[]
33-
34-
== Github Actions Test Reports
35-
36-
If you use Github Actions for CI, you can use https://github.com/mikepenz/action-junit-report in
37-
your pipeline to render the generated `test-report.xml` files nicely on Github. See
38-
https://github.com/com-lihaoyi/mill/pull/4218/files for an example integration

website/docs/modules/ROOT/pages/scalalib/testing.adoc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,3 @@ include::partial$example/scalalib/testing/6-test-grouping.adoc[]
3030
=== Test Grouping & Test Parallelism together
3131

3232
include::partial$example/scalalib/testing/7-test-group-parallel.adoc[]
33-
34-
== Github Actions Test Reports
35-
36-
If you use Github Actions for CI, you can use https://github.com/mikepenz/action-junit-report in
37-
your pipeline to render the generated `test-report.xml` files nicely on Github. See
38-
https://github.com/com-lihaoyi/mill/pull/4218/files for an example integration

0 commit comments

Comments
 (0)