We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0624870 commit ff063ebCopy full SHA for ff063eb
.github/workflows/ci.yml
@@ -0,0 +1,38 @@
1
+name: CI
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - 53-github-actions-for-running-spotless-and-tests
8
+ pull_request:
9
10
11
12
+jobs:
13
+ build:
14
+ runs-on: ubuntu-latest
15
16
+ steps:
17
+ - name: Checkout repository
18
+ uses: actions/checkout@v3
19
20
+ - name: Set up JDK 17
21
+ uses: actions/setup-java@v3
22
+ with:
23
+ java-version: '17'
24
+ distribution: 'corretto'
25
26
+ - name: Cache Maven dependencies
27
+ uses: actions/cache@v3
28
29
+ path: ~/.m2/repository
30
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
31
+ restore-keys: |
32
+ ${{ runner.os }}-maven-
33
34
+ - name: Run Spotless
35
+ run: mvn spotless:apply
36
37
+ - name: Run tests
38
+ run: mvn test
0 commit comments