2020-07-31 00:21:13 +00:00
|
|
|
name: "Checking EditorConfig"
|
2020-07-31 16:34:37 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
2020-07-31 00:21:13 +00:00
|
|
|
tests:
|
2020-07-31 16:34:37 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: technote-space/get-diff-action@v2.0.2
|
2020-07-31 00:21:13 +00:00
|
|
|
- name: Checking EditorConfig
|
2020-07-31 16:34:37 +00:00
|
|
|
env:
|
2020-07-30 22:30:40 +00:00
|
|
|
VERSION: "2.1.0"
|
2020-07-31 16:34:37 +00:00
|
|
|
OS: "linux"
|
|
|
|
ARCH: "amd64"
|
|
|
|
run: |
|
|
|
|
curl -sSf -O -L -C - https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$VERSION/ec-$OS-$ARCH.tar.gz && \
|
|
|
|
tar xzf ec-$OS-$ARCH.tar.gz && \
|
|
|
|
./bin/ec-$OS-$ARCH -disable-indentation ${{ env.GIT_DIFF }}
|