Skip to content

Commit

Permalink
build(ci): add pull request workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rhenwinch committed Jun 27, 2024
1 parent a57e8c2 commit e939aa7
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## 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`
- [ ] I have incremented the version of the provider I worked on in its respective `build.gradle.kts` file (if applicable).
- [ ] I have included a changelog detailing any updates I made to a provider on its respective `build.gradle.kts` file (if applicable).
- [ ] I have included my github profile as an author on the provider's respective `build.gradle.kts` file (if I am a new contributor).
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
echo SUPERSTREAM_FOURTH_API=$SUPERSTREAM_FOURTH_API >> local.properties
# Change `**/**/build/*.flx` if you've changed the providers file structure.
- name: Build Plugins
- name: Build providers
run: |
cd $GITHUB_WORKSPACE/src
chmod +x gradlew
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/build_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: PR Build Check

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

on: [pull_request]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@master
with:
path: "src"

- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: 17

- name: Initialize Secrets
env:
SUPERSTREAM_FIRST_API: ${{ secrets.SUPERSTREAM_FIRST_API }}
SUPERSTREAM_SECOND_API: ${{ secrets.SUPERSTREAM_SECOND_API }}
SUPERSTREAM_THIRD_API: ${{ secrets.SUPERSTREAM_THIRD_API }}
SUPERSTREAM_FOURTH_API: ${{ secrets.SUPERSTREAM_FOURTH_API }}
run: |
cd $GITHUB_WORKSPACE/src
echo SUPERSTREAM_FIRST_API=$SUPERSTREAM_FIRST_API >> local.properties
echo SUPERSTREAM_SECOND_API=$SUPERSTREAM_SECOND_API >> local.properties
echo SUPERSTREAM_THIRD_API=$SUPERSTREAM_THIRD_API >> local.properties
echo SUPERSTREAM_FOURTH_API=$SUPERSTREAM_FOURTH_API >> local.properties
# Change `**/**/build/*.flx` if you've changed the providers file structure.
- name: Build providers
run: |
cd $GITHUB_WORKSPACE/src
chmod +x gradlew
./gradlew make generateUpdaterJson

0 comments on commit e939aa7

Please sign in to comment.