Build and test the changes #9
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
name: build-and-test | |
run-name: Build and test the changes | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
commit-status-start: | |
name: Set start commit status | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set start commit status | |
uses: myrotvorets/[email protected] | |
with: | |
token: ${{ secrets.AP_TOKEN }} | |
context: Building AP | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: Build with Gradle | |
run: ./gradlew build | |
commit-status-final: | |
name: Set final commit status | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Set final commit status | |
uses: myrotvorets/[email protected] | |
with: | |
token: ${{ secrets.AP_TOKEN }} | |
status: ${{ needs.build.result }} | |
context: Building AP |