Skip to content

Improved CI - check fmt #1

Improved CI - check fmt

Improved CI - check fmt #1

Workflow file for this run

name: CI-quality
on:
push:
branches:
- main
pull_request:
jobs:
build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
extraKey: quality-check

Check failure on line 16 in .github/workflows/ci-quality.yml

View workflow run for this annotation

GitHub Actions / CI-quality

Invalid workflow file

The workflow is not valid. .github/workflows/ci-quality.yml (Line: 16, Col: 9): Unexpected value 'extraKey' .github/workflows/ci-quality.yml (Line: 18, Col: 9): Unexpected value 'jvm'
- uses: coursier/setup-action@v1
jvm: zulu:8
- name: ScalaFmt
id: fmt
run: sbt scalafmtCheckAll
- name: Compilation or tests failed
if: ${{steps.fmt.conclusion == 'failure' }}
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'The code needs to be formated. Run "sbt scalafmtAll" from the command line in the root of your project or "scalafmtAll" from the sbt cli and push again.'
})