forked from com-lihaoyi/mill
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (55 loc) · 2 KB
/
run-tests.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
name: Run Tests
# We run full CI on push builds to main and on all pull requests
#
# Manual builds (workflow_dispatch) to the main branch are also published
#
# To maximize bug-catching changes while keeping CI times reasonable, we run:
# - All tests on Linux/Java17
# - Fewer tests on Linux/Java11 and Windows/Java17
# - Fewest tests on Windows/Java11
on:
push:
branches:
- debug-coursier-windows
pull_request:
workflow_dispatch:
# cancel older runs of a pull request;
# this will not cancel anything for normal git pushes
concurrency:
group: cancel-old-pr-runs-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
# Jobs are listed in rough order of priority: if multiple jobs fail, the first job
# in the list should be the one that's most worth looking into
build-windows:
uses: ./.github/workflows/run-mill-action.yml
with:
os: windows-latest
java-version: '11'
millargs: __.compile
populate_cache: true
buildcmd: '.github/scripts/coursier-snapshot.sh'
windows:
needs: build-windows
strategy:
fail-fast: false
matrix:
include:
# just run a subset of examples/ on Windows, because for some reason running
# the whole suite can take hours on windows v.s. half an hour on linux
- java-version: '11'
millargs: '"{main,scalalib,bsp}.__.testCached"'
- java-version: '11'
millargs: '"example.scalalib.{basic,web}.__.fork.testCached"'
- java-version: 17
millargs: "'integration.{feature,failure}[_].fork.testCached'"
- java-version: '11'
millargs: "'integration.invalidation[_].server.testCached'"
- java-version: '11'
millargs: "contrib.__.testCached"
uses: ./.github/workflows/run-mill-action.yml
with:
os: windows-latest
java-version: ${{ matrix.java-version }}
millargs: ${{ matrix.millargs }}
buildcmd: '.github/scripts/coursier-snapshot.sh'