Vue frontend for Project area (and other stuff) #410
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: Scalafmt Check | |
on: | |
push: | |
paths: | |
- '**.scala' | |
- '**.sc' | |
- '**.sbt' | |
pull_request: | |
paths: | |
- '**.scala' | |
- '**.sc' | |
- '**.sbt' | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
env: | |
VERSION: 2.4.2 | |
steps: | |
- uses: actions/checkout@v4 | |
#- name: Cache Scalafmt native image | |
# id: cache | |
# uses: actions/cache@v1 | |
# with: | |
# path: scalafmt-native | |
# key: ${{ runner.os }}-scalafmt-native-image-${{ hashFiles('scalafmt-native') }} | |
#- name: Download Scalafmt-native | |
# if: steps.cache.outputs.cache-hit != 'true' | |
# run: curl https://raw.githubusercontent.com/scalameta/scalafmt/master/bin/install-scalafmt-native.sh | bash -s -- $VERSION $GITHUB_WORKSPACE/scalafmt-native | |
- name: Check formatted | |
run: ./scalafmt --check --non-interactive |