Migrate to Playframework 3 and Pekko #818
Workflow file for this run
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
name: Build the app | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
concurrency: | |
# Only run once for latest commit per ref and cancel other (previous) runs. | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read # for checkout | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Setup Scala | |
uses: japgolly/[email protected] | |
with: | |
java-version: 'adopt:1.11.0-11' | |
node-version: '16.7.0' | |
- name: Cache compiled code | |
uses: actions/cache@v3 | |
with: | |
path: | | |
**/target/ | |
/home/runner/.ivy2/local | |
key: compiled-code-cache-${{ hashFiles('**/build.sbt') }} | |
restore-keys: compiled-code-cache- | |
- name: Check code format | |
run: sbt scalafmtCheckAll | |
- name: Compile | |
run: CI=true sbt compile | |
- name: Run tests | |
run: CI=true sbt test | |
- name: Prepare web build | |
run: sbt web/build | |
- name: Prepare server build | |
run: sbt server/dist |