Skip to content

Commit

Permalink
Merge pull request #227 from Ilithy/build-on-pull-workflow
Browse files Browse the repository at this point in the history
[Proposal][Workflow] Build on pull request
  • Loading branch information
octoshrimpy authored Jan 24, 2025
2 parents f8b598c + 0cc66fb commit 909947b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-on-pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Test on Pull Request

on:
pull_request:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'

- name: Build with Gradle
run: ./gradlew build

- name: Run Tests
run: ./gradlew test

- name: Deploy Artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: build/libs/

0 comments on commit 909947b

Please sign in to comment.