@@ -10,15 +10,42 @@ permissions:
1010 pull-requests : write # labeler, auto-merge requirement
1111jobs :
1212 build :
13- uses : softwaremill/github-actions-workflows/.github/workflows/build-scala.yml@main
14- # run on 1) push, 2) external PRs, 3) softwaremill-cisoftwaremill-ci PRs
13+ # run on 1) push, 2) external PRs, 3) softwaremill-ci PRs
1514 # do not run on internal, non-steward PRs since those will be run by push to branch
1615 if : |
1716 github.event_name == 'push' ||
1817 github.event.pull_request.head.repo.full_name != github.repository ||
19- github.event.pull_request.user.login == 'softwaremill-cisoftwaremill-ci'
20- with :
21- java-opts : ' -Xmx4G'
18+ github.event.pull_request.user.login == 'softwaremill-ci'
19+ runs-on : ubuntu-24.04
20+ env :
21+ JAVA_OPTS : ' -Xmx4G'
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v6
25+ - name : Set up JDK
26+ uses : actions/setup-java@v5
27+ with :
28+ distribution : ' temurin'
29+ java-version : 11
30+ cache : ' sbt'
31+ - uses : sbt/setup-sbt@3e125ece5c3e5248e18da9ed8d2cce3d335ec8dd # v1, specifically v1.1.14
32+ - name : Install scala-cli
33+ uses : VirtusLab/scala-cli-setup@68bd9c30954d20e6cb6ddaf01b3b38336f25df4b # main, specifically v1.10.1
34+ with :
35+ jvm : ' ' # needed because scala-cli-setup otherwise forces the installation of their default JVM (17)
36+ - name : Check formatting
37+ run : sbt -v scalafmtCheckAll
38+ - name : Compile
39+ run : sbt -v compile
40+ - name : Verify that examples compile using Scala CLI
41+ run : sbt -v "project examples" verifyExamplesCompileUsingScalaCli
42+ - name : Test
43+ run : sbt -v test
44+ - uses : actions/upload-artifact@v5 # upload test results
45+ if : success() || failure() # run this step even if previous step failed
46+ with :
47+ name : ' tests-results'
48+ path : ' **/test-reports/TEST*.xml'
2249
2350 publish :
2451 uses : softwaremill/github-actions-workflows/.github/workflows/publish-release.yml@main
@@ -30,14 +57,14 @@ jobs:
3057 sttp-native : 1
3158
3259 label :
33- # only for PRs by softwaremill-cisoftwaremill-ci
34- if : github.event.pull_request.user.login == 'softwaremill-cisoftwaremill- ci'
60+ # only for PRs by
61+ if : github.event.pull_request.user.login == 'softwaremill-ci'
3562 uses : softwaremill/github-actions-workflows/.github/workflows/label.yml@main
3663 secrets : inherit
3764
3865 auto-merge :
39- # only for PRs by softwaremill-cisoftwaremill- ci
40- if : github.event.pull_request.user.login == 'softwaremill-cisoftwaremill- ci'
66+ # only for PRs by softwaremill-ci
67+ if : github.event.pull_request.user.login == 'softwaremill-ci'
4168 needs : [ build, label ]
4269 uses : softwaremill/github-actions-workflows/.github/workflows/auto-merge.yml@main
4370 secrets : inherit
0 commit comments