summary refs log tree commit diff
path: root/.github/workflows/editorconfig.yml
blob: 86b89a3f558f82567374e4b92e3615d96fb0f226 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: "Checking EditorConfig"

on:
  pull_request:
    branches:
      - master

jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - uses: technote-space/get-diff-action@v2.0.3
    - name: Checking EditorConfig
      env:
        VERSION: "2.1.0"
        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 }}