-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(ci): add pull request template and workflow
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |