-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Switch to GHA #215
Merged
Switch to GHA #215
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,49 @@ | ||
name: Check | ||
|
||
on: | ||
pull_request: # Check Pull Requests | ||
|
||
push: | ||
branches: | ||
- main # Check main branch after merge | ||
- gha # TODO: drop before merge | ||
|
||
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: Code Style | ||
uses: playframework/.github/.github/workflows/cmd.yml@v2 | ||
with: | ||
cmd: sbt validateCode | ||
|
||
tests: | ||
name: Tests | ||
needs: # Waiting more lightweight checks | ||
- "check-code-style" | ||
uses: playframework/.github/.github/workflows/cmd.yml@v2 | ||
with: | ||
scala: 2.12.15, 2.13.8 | ||
cmd: sbt ++$MATRIX_SCALA test | ||
|
||
samples: | ||
name: Samples | ||
needs: # Waiting more lightweight checks | ||
- "tests" | ||
uses: playframework/.github/.github/workflows/cmd.yml@v2 | ||
with: | ||
add-dimensions: >- | ||
{ | ||
"sample": [ "scalaChat", "scalaMultiRoomChat", "scalaClusteredChat", "javaChat", "javaMultiRoomChat", "javaClusteredChat" ] | ||
} | ||
cmd: |- # sbt $MATRIX_SAMPLE/test | ||
echo "TODO: NEED FIX" | ||
|
||
finish: | ||
name: Finish | ||
needs: # Should be last | ||
- "samples" | ||
uses: playframework/.github/.github/workflows/rtm.yml@v2 |
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,13 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: # Snapshots | ||
- main | ||
tags: ["*"] # Releases | ||
|
||
jobs: | ||
publish-artifacts: | ||
name: Publish / Artifacts | ||
uses: playframework/.github/.github/workflows/publish.yml@v2 | ||
secrets: inherit |
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
queue_rules: | ||
- name: default | ||
conditions: | ||
# Conditions to get out of the queue (= merged) | ||
- check-success~=/ Ready To Merge$ | ||
|
||
pull_request_rules: | ||
- name: Merge PRs that are ready | ||
conditions: | ||
- status-success=Travis CI - Pull Request | ||
- status-success=typesafe-cla-validator | ||
- check-success~=/ Ready To Merge$ | ||
- check-success=typesafe-cla-validator | ||
- "#approved-reviews-by>=1" | ||
- "#review-requested=0" | ||
- "#changes-requested-reviews-by=0" | ||
- label!=status:block-merge | ||
- label=status:merge-when-green | ||
actions: | ||
merge: | ||
method: squash | ||
strict: smart | ||
queue: | ||
method: merge | ||
name: default | ||
|
||
- name: Delete the PR branch after merge | ||
conditions: | ||
- merged | ||
actions: | ||
delete_head_branch: {} | ||
|
||
- name: auto add wip | ||
conditions: | ||
# match a few flavours of wip | ||
- title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).* | ||
actions: | ||
label: | ||
add: ["status:block-merge"] | ||
remove: [ "status:merge-when-green" ] |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import Dependencies.AkkaVersion | ||
import Dependencies.Scala212 | ||
import Dependencies.Scala213 | ||
import play.core.PlayVersion.{ current => playVersion } | ||
|
||
val AkkaVersion = "2.5.28" | ||
|
||
lazy val runChromeWebDriver = taskKey[Unit]("Run the chromewebdriver tests") | ||
|
||
val macwire = "com.softwaremill.macwire" %% "macros" % "2.3.4" | ||
val lombok = "org.projectlombok" % "lombok" % "1.18.8" | ||
val lombok = "org.projectlombok" % "lombok" % "1.18.8" % Provided | ||
val akkaCluster = Seq( | ||
"com.typesafe.akka" %% "akka-cluster" % AkkaVersion, | ||
"com.typesafe.akka" %% "akka-cluster-tools" % AkkaVersion | ||
|
@@ -36,8 +35,8 @@ lazy val root = (project in file(".")) | |
"com.typesafe.play" %% "play-guice" % playVersion % Test, | ||
macwire % Test, | ||
// Test dependencies for running chrome driver | ||
"io.github.bonigarcia" % "webdrivermanager" % "5.1.1" % Test, | ||
"org.seleniumhq.selenium" % "selenium-chrome-driver" % "3.141.59" % Test, | ||
"io.github.bonigarcia" % "webdrivermanager" % "5.1.1" % Test, | ||
"org.seleniumhq.selenium" % "selenium-chrome-driver" % "4.1.4" % Test, | ||
// Test framework dependencies | ||
"org.scalatest" %% "scalatest" % "3.1.2" % Test, | ||
"com.novocode" % "junit-interface" % "0.11" % Test | ||
|
@@ -91,7 +90,6 @@ lazy val scalaClusteredChat = (project in file("samples/scala/clustered-chat")) | |
.settings( | ||
name := "play-socket.io-scala-clustered-chat-example", | ||
organization := "com.typesafe.play", | ||
publish / skip := true, | ||
scalaVersion := Scala213, | ||
libraryDependencies ++= Seq(macwire % Provided) ++ akkaCluster | ||
) | ||
|
@@ -102,7 +100,6 @@ lazy val javaChat = (project in file("samples/java/chat")) | |
.settings( | ||
name := "play-socket.io-java-chat-example", | ||
organization := "com.typesafe.play", | ||
publish / skip := true, | ||
scalaVersion := Scala213, | ||
libraryDependencies += guice | ||
) | ||
|
@@ -113,7 +110,6 @@ lazy val javaMultiRoomChat = (project in file("samples/java/multi-room-chat")) | |
.settings( | ||
name := "play-socket.io-java-multi-room-chat-example", | ||
organization := "com.typesafe.play", | ||
publish / skip := true, | ||
scalaVersion := Scala213, | ||
libraryDependencies ++= Seq(guice, lombok) | ||
) | ||
|
@@ -124,16 +120,19 @@ lazy val javaClusteredChat = (project in file("samples/java/clustered-chat")) | |
.settings( | ||
name := "play-socket.io-java-clustered-chat-example", | ||
organization := "com.typesafe.play", | ||
publish / skip := true, | ||
scalaVersion := Scala213, | ||
libraryDependencies ++= Seq(guice, lombok) ++ akkaCluster | ||
) | ||
|
||
addCommandAlias( | ||
"validateCode", | ||
List( | ||
"headerCheckAll", | ||
"scalafmtSbtCheck", | ||
"scalafmtCheckAll", | ||
( | ||
List( | ||
"headerCheckAll", | ||
"scalafmtSbtCheck", | ||
"scalafmtCheckAll", | ||
) ++ | ||
List(scalaChat, scalaMultiRoomChat, scalaClusteredChat, javaChat, javaMultiRoomChat, javaClusteredChat) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
.flatMap(p => List("scalafmtCheckAll").map(cmd => s"${p.id}/$cmd")) | ||
).mkString(";") | ||
) |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch 👍