diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-08-23 19:22:58 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-08-28 21:16:57 +1000 |
commit | d5fe18167deddc850d0aa5cac9fbec32250b3bb2 (patch) | |
tree | 44bf951b7fab43df8562ebf6cb590f101f259624 /.github | |
parent | db77fb705ea9406bb1cbc6be68e327711d9074b2 (diff) |
.github/workflows: re-add editorconfig
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/editorconfig.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml new file mode 100644 index 0000000000000..98c7afbab7804 --- /dev/null +++ b/.github/workflows/editorconfig.yml @@ -0,0 +1,27 @@ +name: "Checking EditorConfig" + +on: + pull_request: + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: technote-space/get-diff-action@v3.1.0 + - name: Fetch editorconfig-checker + if: env.GIT_DIFF + env: + ECC_VERSION: "2.1.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-indentation \ + ${{ env.GIT_DIFF }} |