Skip to content

Commit c5d6c21

Browse files
authored
Setup github action to lint and build
Attempting to see if exercism#1726 could work.
1 parent 31c1c26 commit c5d6c21

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Java CI with Gradle
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK 1.8
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.8
23+
- name: Fetch configlet
24+
run: bin/fetch-configlet
25+
- name: Lint
26+
run: bin/configlet lint
27+
- name: Grant execute permission for gradlew
28+
run: chmod +x gradlew
29+
- name: Change directory to exercises
30+
run: cd exercises
31+
- name: Compile and checkstyle with Gradle
32+
run: ../gradlew check compileStarterSourceJava --parallel --continue

0 commit comments

Comments
 (0)