Skip to content

Commit 93a03ce

Browse files
committed
Run spotlessCheck only in JDK 11 on GitHub Actions
1 parent 8860e90 commit 93a03ce

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/code-formatting.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This name is shown in the status badge in the README
2+
name: code-formatting
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
test:
8+
name: JDK ${{matrix.java}}
9+
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
java: [11]
14+
15+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v1
18+
19+
- name: Set up JDK
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: ${{ matrix.java }}
23+
24+
- name: Check code formatting
25+
run: ./gradlew spotlessCheck

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ subprojects {
111111
scalafmt('2.6.3').configFile(rootProject.file('scalafmt.conf'))
112112
}
113113
}
114-
tasks.check.dependsOn spotlessCheck
115114
}
116115

117116
allprojects {

0 commit comments

Comments
 (0)