chore: update play-ahc-ws, play-akka-http-server, ... from 2.9.6 to 3.0.6 #1324
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: Run Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: mdillon/postgis:latest | |
env: | |
POSTGRES_USER: test | |
POSTGRES_DB: test | |
POSTGRES_PASSWORD: test | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache SBT ivy cache | |
uses: actions/cache@v1 | |
with: | |
path: ~/.ivy2/cache | |
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }} | |
- name: Cache SBT | |
uses: actions/cache@v1 | |
with: | |
path: ~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- name: Set up JDK 11.0.9 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11.0.9 | |
- name: Set up Firebase | |
run: npm install -g firebase-tools | |
- name: Set up Environment | |
shell: bash | |
run: | | |
cat <<< $FIREBASE_JSON > ./conf/firebase.json | |
env: | |
FIREBASE_JSON: ${{ secrets.FIREBASE_JSON_PRODUCTION }} | |
- name: Run tests | |
run: | | |
cd .bin | |
firebase emulators:exec "cd .. && export FIREBASE_AUTH_EMULATOR_HOST='localhost:9099' && sbt ciTests" --only auth --project demo-bootstrap-play2 --import=./firebase-data | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.PUBLIC_GITHUB_TOKEN }} | |
- name: Visualize DB Schema | |
run: | | |
pushd $PWD/.bin/schemaspy/ | |
curl -JLO https://search.maven.org/remotecontent?filepath=org/postgresql/postgresql/$POSTGRESQL_VERSION/postgresql-$POSTGRESQL_VERSION.jar | |
curl -JL https://github.com/schemaspy/schemaspy/releases/download/v${SCHEMASPY_VERSION}/schemaspy-${SCHEMASPY_VERSION}.jar -o schemaspy.jar | |
java -jar schemaspy.jar -vizjs | |
zip -r schemaspy.zip output/ | |
popd | |
env: | |
POSTGRESQL_VERSION: "42.5.0" | |
SCHEMASPY_VERSION: "6.1.0" | |
- name: Archive schemaspy db documentation | |
uses: actions/upload-artifact@v3 | |
with: | |
name: database-documentation | |
path: .bin/schemaspy/schemaspy.zip |