Skip to content

Commit 4a0afad

Browse files
committed
Create a CI workflow.
1 parent 59ea9c4 commit 4a0afad

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Build workflow
2+
3+
name: CI
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
# Allows to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
jobs:
15+
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
# Checks-out the repository under $GITHUB_WORKSPACE
21+
- uses: actions/checkout@v2
22+
23+
# Set JDK
24+
- name: Set up JDK
25+
uses: actions/setup-java@v2
26+
with:
27+
java-version: '16'
28+
distribution: 'adopt'
29+
30+
# Validate wrapper to prevent potential supply chain attack
31+
- name: Validate Gradle wrapper
32+
uses: gradle/wrapper-validation-action@v1
33+
34+
# Build
35+
- name: Build with Gradle
36+
run: ./gradlew build

gradlew

100644100755
File mode changed.

0 commit comments

Comments
 (0)