Skip to content

Commit 9178eb1

Browse files
committed
Run all tests with Scala 2 library TASTy
1 parent aec6070 commit 9178eb1

File tree

2 files changed

+50
-5
lines changed

2 files changed

+50
-5
lines changed

.github/workflows/ci.yaml

+45-1
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,53 @@ jobs:
142142
run: |
143143
./project/scripts/sbt ";sjsSandbox/run ;sjsSandbox/test ;sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test"
144144
145-
- name: Test with Scala 2 library TASTy
145+
- name: Test with Scala 2 library TASTy (fast)
146146
run: ./project/scripts/sbt ";set ThisBuild/Build.useScala2LibraryTasty := true ;scala3-bootstrapped/testCompilation i5" # only test a subset of test to avoid doubling the CI execution time
147147

148+
test_scala2_library_tasty:
149+
runs-on: [self-hosted, Linux]
150+
container:
151+
image: lampepfl/dotty:2021-03-22
152+
options: --cpu-shares 4096
153+
volumes:
154+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
155+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
156+
- ${{ github.workspace }}/../../cache/general:/root/.cache
157+
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
158+
|| github.event_name == 'push'
159+
|| (
160+
github.event_name == 'pull_request'
161+
&& !contains(github.event.pull_request.body, '[skip ci]')
162+
&& contains(github.event.pull_request.body, '[test_scala2_library_tasty]')
163+
)
164+
|| (
165+
github.event_name == 'workflow_dispatch'
166+
&& github.repository == 'lampepfl/dotty'
167+
)"
168+
169+
steps:
170+
- name: Set JDK 16 as default
171+
run: echo "/usr/lib/jvm/java-16-openjdk-amd64/bin" >> $GITHUB_PATH
172+
173+
- name: Reset existing repo
174+
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
175+
176+
- name: Checkout cleanup script
177+
uses: actions/checkout@v3
178+
179+
- name: Cleanup
180+
run: .github/workflows/cleanup.sh
181+
182+
- name: Git Checkout
183+
uses: actions/checkout@v3
184+
185+
- name: Add SBT proxy repositories
186+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
187+
188+
- name: Test with Scala 2 library TASTy
189+
run: ./project/scripts/sbt ";set ThisBuild/Build.useScala2LibraryTasty := true ;scala3-bootstrapped/testCompilation"
190+
191+
148192
test_windows_fast:
149193
runs-on: [self-hosted, Windows]
150194
if: "(

docs/_docs/contributing/sending-in-a-pr.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,11 @@ Below are commonly used ones:
125125
Depending on what your PR is addressing, sometimes it doesn't make sense to run
126126
parts of the CI that usually ony runs on nightly builds.
127127

128-
|---------------------------|----------------------------------------------------|
129-
| `[test_java8]` | Execute unit tests on Java 8 |
130-
| `[test_windows_full]` | Execute unit tests on Windows |
131-
| `[test_non_bootstrapped]` | Execute unit tests using non-bootstrapped compiler |
128+
|-------------------------------|---------------------------------------------------------------------------|
129+
| `[test_java8]` | Execute unit tests on Java 8 |
130+
| `[test_windows_full]` | Execute unit tests on Windows |
131+
| `[test_non_bootstrapped]` | Execute unit tests using non-bootstrapped compiler |
132+
| `[test_scala2_library_tasty]` | Execute unit tests using bootstrapped-compiler with Scala 2 library TASTy |
132133

133134
### 7: Create your PR!
134135

0 commit comments

Comments
 (0)