Skip to content

Commit e3aa99d

Browse files
authored
Add github action that builds and tests the project (#8)
1 parent d66fa93 commit e3aa99d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/pipeline.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**' # Runs on all branches
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Set up JDK 17
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: '17'
19+
distribution: 'zulu'
20+
cache: gradle
21+
22+
- name: Grant execute permission for gradlew
23+
run: chmod +x gradlew
24+
25+
- name: Build
26+
if: github.event_name == 'pull_request'
27+
run: ./gradlew build

0 commit comments

Comments
 (0)