Skip to content

Commit

Permalink
Adds GitHub Action Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjorkan committed Oct 28, 2023
1 parent c427be0 commit 2bb48f0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build
on: [pull_request]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Pull Request
uses: actions/checkout@v3

- name: Setup JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: temurin
cache: gradle

- name: Validate Gradle Wrapper Integrity
uses: gradle/wrapper-validation-action@v1

- name: Make Gradle wrapper executable
run: chmod +x ./gradlew

- name: Build
run: ./gradlew build

- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: Compiled .jar files
path: build/libs/

0 comments on commit 2bb48f0

Please sign in to comment.