aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/.github/workflows/editorconfig.yml
blob: be7a4ba02b61f54678aae7025e8cccb51753aec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: "Checking EditorConfig"

on:
  pull_request:
    branches-ignore:
      - 'release-**'

jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - uses: technote-space/get-diff-action@v4.0.0
    - name: Fetch editorconfig-checker
      if: env.GIT_DIFF
      env:
        ECC_VERSION: "2.2.0"
        ECC_URL: "https://github.com/editorconfig-checker/editorconfig-checker/releases/download"
      run: |
        curl -sSf -O -L -C - "$ECC_URL/$ECC_VERSION/ec-linux-amd64.tar.gz" && \
        tar xzf ec-linux-amd64.tar.gz && \
        mv ./bin/ec-linux-amd64 ./bin/editorconfig-checker
    - name: Checking EditorConfig
      if: env.GIT_DIFF
      run: |
        ./bin/editorconfig-checker -disable-indent-size \
        ${{ env.GIT_DIFF }}