Update sbt-scalafmt to 2.5.2 #316
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: CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["*"] | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
RELEASE: yesh | |
JAVA_OPTS: "-Xmx4G" | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: sbt | |
- name: Compile | |
run: sbt --client 'compile; Test/compile' | |
- name: Run Unit and Stub tests | |
run: sbt --client fastTests | |
- name: Run Integration tests | |
run: sbt --client integrationTests | |
- name: Run Frontend tests | |
run: sbt --client frontendTests | |
- name: Publish local Docker image | |
run: sbt --client publishDocker | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
path: ./playwright-screenshots/ | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
if: startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/main') | |
- name: Deploy to fly.io | |
if: startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/main') | |
run: "flyctl deploy -a jobby-web -i jobby-smithy4s:0.1.0-SNAPSHOT --local-only -c fly.toml" | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |