Skip to content

Commit

Permalink
add GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Mar 14, 2024
1 parent 03ccf12 commit e16e771
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches: ['main']
pull_request:
branches: ['**']

jobs:

build:
strategy:
matrix:
java: [ '8' ]
jdk: [ 'temurin' ]
os: [ 'ubuntu-latest' ]
runs-on: ${{ matrix.os }}
name: Java ${{ matrix.java }} ${{ matrix.jdk }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@v2

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.jdk }}
cache: 'gradle'

- name: Gradle build
run: ./gradlew clean build

0 comments on commit e16e771

Please sign in to comment.