Skip to content

Commit

Permalink
Switch to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed May 6, 2022
1 parent af0d755 commit a0b231d
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 204 deletions.
14 changes: 0 additions & 14 deletions .ci_scripts/jvmopts.sh

This file was deleted.

24 changes: 0 additions & 24 deletions .ci_scripts/validate.sh

This file was deleted.

156 changes: 0 additions & 156 deletions .circleci/config.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Check

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: Code Style
uses: playframework/.github/.github/workflows/cmd.yml@v2
with:
cmd: sbt validateCode

check-binary-compatibility:
name: Binary Compatibility
uses: playframework/.github/.github/workflows/binary-check.yml@v2

check-docs:
name: Docs
uses: playframework/.github/.github/workflows/cmd.yml@v2
with:
java: 11, 8
scala: 2.11.12, 2.12.15, 2.13.8
cmd: sbt ++$MATRIX_SCALA docs/test

tests:
name: Tests
needs: # Waiting more lightweight checks
- "check-code-style"
- "check-binary-compatibility"
- "check-docs"
uses: playframework/.github/.github/workflows/cmd.yml@v2
with:
java: 11, 8
scala: 2.11.12, 2.12.15, 2.13.8
cmd: sbt ++$MATRIX_SCALA publishLocal test # scapegoat

finish:
name: Finish
needs: # Should be last
- "tests"
uses: playframework/.github/.github/workflows/rtm.yml@v2
17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish

on:
push:
branches: # Snapshots
- main
tags: ["*"] # Releases

jobs:
publish-artifacts:
name: Publish / Artifacts
uses: playframework/.github/.github/workflows/publish.yml@v2
secrets:
username: ${{ secrets.SONATYPE_USERNAME }}
password: ${{ secrets.SONATYPE_PASSWORD }}
pgp_passphrase: ${{ secrets.PGP_PASSPHRASE }}
pgp_secret: ${{ secrets.PGP_SECRET }}
10 changes: 0 additions & 10 deletions bin/travis

This file was deleted.

8 changes: 8 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,11 @@ lazy val docs = project
Scapegoat.settings

ThisBuild / playBuildRepoName := "anorm"

addCommandAlias(
"validateCode",
List(
"scalafmtSbtCheck",
"scalafmtCheckAll",
).mkString(";")
)

0 comments on commit a0b231d

Please sign in to comment.