Skip to content

Commit 67f0db5

Browse files
committed
First steps in adapting #1477 to match #1472.
1 parent 8bf01ac commit 67f0db5

File tree

2 files changed

+43
-67
lines changed

2 files changed

+43
-67
lines changed

.github/workflows/build-ci.yml

-67
This file was deleted.

.github/workflows/ci.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# BUILDCACHE_USER
2+
# BUILDCACHE_PASS
3+
# - rw access to buildcache.diffplug.com
4+
5+
on: [push, pull_request]
6+
jobs:
7+
testClasses:
8+
name: spotlessCheck assemble testClasses
9+
runs-on: ubuntu-latest
10+
env:
11+
buildcacheuser: ${{ secrets.BUILDCACHE_USER }}
12+
buildcachepass: ${{ secrets.BUILDCACHE_PASS }}
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Install JDK 11
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: "temurin"
20+
java-version: 11
21+
cache: gradle
22+
- name: Build project
23+
run: ./gradlew spotlessCheck assemble testClasses --build-cache
24+
test_windows:
25+
needs: testClasses
26+
name: test_windows
27+
runs-on: windows-latest
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
java_version: [17]
32+
distribution: ["temurin"]
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v3
36+
- name: Install JDK ${{ matrix.distribution }} ${{ matrix.java_version }}
37+
uses: actions/setup-java@v3
38+
with:
39+
distribution: ${{ matrix.distribution }}
40+
java-version: ${{ matrix.java_version }}
41+
cache: gradle
42+
- name: Build project
43+
run: ./gradlew test --build-cache -PSPOTLESS_EXCLUDE_MAVEN=true

0 commit comments

Comments
 (0)