2023-09-11 23:51:59 +03:00
|
|
|
---
|
|
|
|
name: Run Check
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
env:
|
2023-09-15 00:27:34 +03:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-09-11 23:51:59 +03:00
|
|
|
JAVA_VERSION: 17
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-26 18:00:47 +03:00
|
|
|
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
2023-09-11 23:51:59 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
# Allow subsequent steps to trigger GitHub Actions via git push
|
|
|
|
# https://github.community/t/push-from-action-even-with-pat-does-not-trigger-action/17622
|
|
|
|
persist-credentials: false
|
|
|
|
|
|
|
|
- name: Configure JDK
|
2023-09-26 18:00:47 +03:00
|
|
|
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
|
2023-09-11 23:51:59 +03:00
|
|
|
with:
|
|
|
|
distribution: 'temurin'
|
|
|
|
java-version: ${{ env.JAVA_VERSION }}
|
|
|
|
|
|
|
|
- name: Build and Run Check
|
|
|
|
# Run checks while excluding release-build tests, which are not configured to work properly
|
|
|
|
# with the Compose testing library.
|
|
|
|
run: ./gradlew check -x testRelease
|