Skip to content

Merge pull request #868 from playframework/dependabot/gradle/gradle-t… #152

Merge pull request #868 from playframework/dependabot/gradle/gradle-t…

Merge pull request #868 from playframework/dependabot/gradle/gradle-t… #152

Workflow file for this run

name: Check
on:
pull_request:
push:
branches:
- 2.0.x # Check branch after merge
concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs.
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
# Run Gradle Wrapper Validation to verify the wrapper's checksum
gradle-validation:
name: Gradle Wrapper
uses: playframework/.github/.github/workflows/gradle-wrapper-validation.yml@v3
check-code-style:
name: Code Style
needs:
- "gradle-validation"
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
gradle-build-root: gradle-twirl
cmd: |
sbt validateCode
sbt +compiler/publishM2
cd gradle-twirl && ./gradlew clean spotlessCheck --no-daemon
check-binary-compatibility:
name: Binary Compatibility
uses: playframework/.github/.github/workflows/binary-check.yml@v3
check-docs:
name: Docs
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
cmd: |
cd docs
sbt evaluateSbtFiles +validateDocs headerCheckAll +test
tests:
name: Tests
needs:
- "check-code-style"
- "check-binary-compatibility"
- "check-docs"
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
java: 21, 17, 11
scala: 2.12.x, 2.13.x, 3.x
cmd: scripts/test-code.sh
gradle-build-root: gradle-twirl
finish:
name: Finish
if: github.event_name == 'pull_request'
needs: # Should be last
- "tests"
uses: playframework/.github/.github/workflows/rtm.yml@v3