Skip to content

Build and test the changes #6

Build and test the changes

Build and test the changes #6

name: build-and-test
run-name: Build and test the changes
on: [push, pull_request, workflow_dispatch]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set commit status as pending
uses: myrotvorets/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: pending
context: Building AP
sha: ${{ github.sha }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Build with Gradle
run: ./gradlew build
- name: Set final commit status
uses: myrotvorets/[email protected]
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
context: Building AP
sha: ${{ github.sha }}