Skip to content

Commit

Permalink
ci: add github action file to get automatic test and build execution …
Browse files Browse the repository at this point in the history
…when pushing and creating a pull request to main

Closes #9
  • Loading branch information
berka3 committed Nov 16, 2023
1 parent 7248ae8 commit db5a8ef
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/actions-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Push to main workflow
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'

- name: set up gradle
uses: gradle/gradle-build-action@v2

- name: test with gradle
run: ./gradlew test

- name: build with gradle
run: ./gradlew build

0 comments on commit db5a8ef

Please sign in to comment.