Skip to content

Commit

Permalink
Add Pull Request Build Action
Browse files Browse the repository at this point in the history
This commit adds PR.yml which is a GitHub action that will try and build the PR being submitted to make sure it can be built and also to help people beta-testing PRs and hopefully saving everyone time! The built jar files are then uploaded as artifacts of the action in a easy to download .zip file!
  • Loading branch information
Bjorkan authored Oct 29, 2023
1 parent c427be0 commit cc625ad
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Pull Request Actions
on:
pull_request:

jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

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

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- 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 on GitHub Actions
uses: actions/upload-artifact@v3
with:
if-no-files-found: error
path: build/libs/
name: CEI .jar files from PR

0 comments on commit cc625ad

Please sign in to comment.