2020-08-23 09:22:58 +00:00
|
|
|
name: "Checking EditorConfig"
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2020-10-24 02:24:25 +00:00
|
|
|
branches-ignore:
|
|
|
|
- 'release-**'
|
2020-08-23 09:22:58 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2020-10-12 23:07:23 +00:00
|
|
|
- uses: technote-space/get-diff-action@v4.0.0
|
2020-08-23 09:22:58 +00:00
|
|
|
- name: Fetch editorconfig-checker
|
|
|
|
if: env.GIT_DIFF
|
|
|
|
env:
|
2020-10-20 10:30:28 +00:00
|
|
|
ECC_VERSION: "2.2.0"
|
2020-08-23 09:22:58 +00:00
|
|
|
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: |
|
2020-10-24 02:23:38 +00:00
|
|
|
./bin/editorconfig-checker -disable-indent-size \
|
2020-08-23 09:22:58 +00:00
|
|
|
${{ env.GIT_DIFF }}
|