Skip to content

Commit bb9ab12

Browse files
authored
Create distinct jobs for lint, build and test
Still experimenting with GitHub actions. See exercism#1726
1 parent 27f2c16 commit bb9ab12

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

.github/workflows/gradle.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ on:
1010
branches: [ master ]
1111

1212
jobs:
13+
lint:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Fetch configlet
20+
run: bin/fetch-configlet
21+
- name: Lint
22+
run: bin/configlet lint .
23+
1324
build:
1425

1526
runs-on: ubuntu-latest
@@ -20,11 +31,22 @@ jobs:
2031
uses: actions/setup-java@v1
2132
with:
2233
java-version: 1.8
23-
- name: Fetch configlet
24-
run: bin/fetch-configlet
25-
- name: Lint
26-
run: bin/configlet lint .
2734
- name: Grant execute permission for gradlew
2835
run: chmod +x gradlew
2936
- name: Compile and checkstyle with Gradle
3037
run: cd exercises && ../gradlew check compileStarterSourceJava --parallel --continue
38+
39+
test:
40+
41+
runs-on: ubuntu-latest
42+
43+
steps:
44+
- uses: actions/checkout@v2
45+
- name: Set up JDK 1.8
46+
uses: actions/setup-java@v1
47+
with:
48+
java-version: 1.8
49+
- name: Grant execute permission for gradlew
50+
run: chmod +x gradlew
51+
- name: Journey test
52+
run: bin/journey-test.sh

0 commit comments

Comments
 (0)