-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip travis] CI with GitHub Actions
- Loading branch information
Showing
3 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: Pull Requests | ||
|
||
on: | ||
pull_request: | ||
|
||
concurrency: | ||
# Only run once for latest commit per ref and cancel other (previous) runs. | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check-code-style: | ||
name: Check / Code Style # Scalafmt, Javafmt, File Headers (Test, IT, Microbench), Akka versions | ||
uses: ihostage/.github-play/.github/workflows/sbt.yml@sharable-actions | ||
with: | ||
cmd: sbt validateCode | ||
|
||
check-binary-compatibility: | ||
name: Check / Binary Compatibility | ||
uses: ihostage/.github-play/.github/workflows/binary-check.yml@sharable-actions | ||
|
||
check-docs: | ||
name: Check / Docs | ||
uses: ihostage/.github-play/.github/workflows/sbt.yml@sharable-actions | ||
with: | ||
cmd: | | ||
cd documentation | ||
sbt evaluateSbtFiles validateDocs headerCheck Test/headerCheck +scalafmtCheckAll scalafmtSbtCheck javafmtCheckAll | ||
./addMarkdownCopyright | ||
publish-local: | ||
name: Publish Local | ||
needs: # Waiting more lightweight checks | ||
- "check-code-style" | ||
- "check-binary-compatibility" | ||
- "check-docs" | ||
uses: ihostage/.github-play/.github/workflows/sbt.yml@sharable-actions | ||
with: | ||
cmd: | | ||
echo "HOME: $HOME" | ||
rm -rf ~/.ivy2/local | ||
sbt crossScalaVersions crossSbtVersions +publishLocal | ||
ls -la ~/.ivy2/local/com.typesafe.play | ||
cache-path: ~/.ivy2/local/com.typesafe.play | ||
cache-key: play-${{ github.sha }} | ||
|
||
check-microbenchmarks: | ||
name: Check / Microbenchmarks | ||
if: ${{ false }} # TODO: enable | ||
needs: # Waiting more lightweight checks | ||
- "check-code-style" | ||
- "check-binary-compatibility" | ||
- "check-docs" | ||
uses: ihostage/.github-play/.github/workflows/sbt.yml@sharable-actions | ||
with: | ||
cmd: sbt Play-Microbenchmark/jmh:run -i 1 -wi 0 -f 1 -t 1 -foe=true | ||
|
||
tests: | ||
name: Check / Tests | ||
needs: # Waiting more lightweight checks | ||
- "check-code-style" | ||
- "check-binary-compatibility" | ||
- "check-docs" | ||
uses: ihostage/.github-play/.github/workflows/sbt-matrix.yml@sharable-actions | ||
with: | ||
java: >- | ||
[ "11" ] | ||
scala: >- | ||
[ "2.13.8" ] | ||
cmd: sbt ++$SCALA_VERSION test | ||
|
||
it-tests: | ||
name: Check / Integration Tests | ||
needs: # Waiting more lightweight checks | ||
- "check-code-style" | ||
- "check-binary-compatibility" | ||
- "check-docs" | ||
uses: ihostage/.github-play/.github/workflows/sbt-matrix.yml@sharable-actions | ||
with: | ||
java: >- | ||
[ "11" ] | ||
scala: >- | ||
[ "2.13.8" ] | ||
cmd: sbt ++$SCALA_VERSION Play-Integration-Test/It/test | ||
|
||
docs-tests: | ||
name: Check / Docs Tests | ||
if: ${{ false }} # TODO: enable | ||
needs: # Waiting more lightweight checks | ||
- "check-code-style" | ||
- "check-binary-compatibility" | ||
- "check-docs" | ||
uses: ihostage/.github-play/.github/workflows/sbt-matrix.yml@sharable-actions | ||
with: | ||
java: >- | ||
[ "11" ] | ||
scala: >- | ||
[ "2.13.8" ] | ||
cmd: cd documentation && sbt ++$SCALA_VERSION test |
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
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