Skip to content

Commit 901f57b

Browse files
author
rcsoyer
committed
define ci/cd pipeline for github
1 parent 451814a commit 901f57b

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.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 and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
3+
4+
name: Java CI with Gradle
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '21'
24+
distribution: 'temurin'
25+
26+
# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies.
27+
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
28+
- name: Setup Gradle
29+
uses: gradle/actions/setup-gradle@v3
30+
31+
- name: Build with Gradle Wrapper
32+
run: ./gradlew build

0 commit comments

Comments
 (0)