Skip to content

Commit

Permalink
build(ci): add pull request template and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rhenwinch committed Jun 26, 2024
1 parent 22b6356 commit ba8ac01
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Description

Please include a summary of the changes and the related issue. Explain the motivation for the change.

Fixes # (issue)

## Checklist:

- [ ] I have followed the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) guidelines for all my commits.
- Example of a Conventional Commit message: `feat: add new feature to enhance user experience`
38 changes: 38 additions & 0 deletions .github/workflows/PullRequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: PR Build Check

on: [pull_request]

permissions:
contents: read

concurrency:
group: "pull request build"
cancel-in-progress: true

jobs:
build:
name: Build app
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: adopt

- name: Build release artifacts
uses: gradle/gradle-command-action@v2
with:
arguments: assembleRelease bundleReleaseClassesToCompileJar

- name: Generate provider stubs
run: |
chmod +x .github/create_provider_stubs.sh
.github/create_provider_stubs.sh

0 comments on commit ba8ac01

Please sign in to comment.