Update scala-library to 2.13.14 #305
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: Check | |
on: | |
push: | |
branches: | |
- main | |
tags: ["*"] | |
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-docs: | |
name: Check docs | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves | |
fetch-depth: 0 | |
- name: Setup scala-cli | |
uses: VirtusLab/[email protected] | |
with: | |
scala-cli-version: 0.1.4 | |
- name: Run mdoc | |
working-directory: .github/docs | |
run: scala-cli run . | |
- name: Check if docs are up to date | |
run: | | |
if [[ -n $(git status -s) ]]; then | |
echo "README outdated, please run 'scala-cli run .' in '.github/docs' and commit changes." | |
exit 1 | |
else | |
echo "README up to date." | |
fi | |
check-code-style: | |
name: Code Style | |
uses: playframework/.github/.github/workflows/sbt.yml@v1 | |
with: | |
cmd: sbt validateCode | |
tests: | |
name: Tests | |
needs: # Waiting more lightweight checks | |
- "check-code-style" | |
uses: playframework/.github/.github/workflows/sbt.yml@v1 | |
with: | |
cmd: sbt test | |
run-application: | |
strategy: | |
matrix: | |
mode: [development, production] | |
include: | |
- mode: development | |
port: 3000 | |
- mode: production | |
port: 9000 | |
name: Run in ${{ matrix.mode }} mode | |
needs: | |
- "tests" | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves | |
fetch-depth: 0 | |
- name: Build docker image | |
run: docker build -f .github/integration-test/Dockerfile-${{ matrix.mode }} -t play-scala-react-seed . | |
- name: Run docker image | |
run: docker run -p ${{ matrix.port }}:${{ matrix.port }} -d play-scala-react-seed | |
- name: Setup scala-cli | |
uses: VirtusLab/[email protected] | |
with: | |
scala-cli-version: 0.1.4 | |
- name: Wait for application | |
working-directory: .github/integration-test | |
run: scala-cli test . --server=false --java-opt "-Dapplication.port=${{ matrix.port }}" |