Skip to content

Sponsor changes and version bump (#1075) #420

Sponsor changes and version bump (#1075)

Sponsor changes and version bump (#1075) #420

Workflow file for this run

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@v2
#- 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