2020-07-31 00:21:13 +00:00
|
|
|
name: "Checking EditorConfig"
|
2020-07-31 16:34:37 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
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
|
2020-08-03 08:05:38 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2020-08-10 06:21:59 +00:00
|
|
|
- uses: technote-space/get-diff-action@v3.0.0
|
2020-08-06 11:47:40 +00:00
|
|
|
- name: Fetch editorconfig-checker
|
2020-08-09 09:46:05 +00:00
|
|
|
if: env.GIT_DIFF
|
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"
|
2020-08-02 22:01:50 +00:00
|
|
|
ECC_URL: "https://github.com/editorconfig-checker/editorconfig-checker/releases/download"
|
2020-07-31 16:34:37 +00:00
|
|
|
run: |
|
2020-08-02 22:01:50 +00:00
|
|
|
curl -sSf -O -L -C - $ECC_URL/$VERSION/ec-$OS-$ARCH.tar.gz && \
|
2020-07-31 16:34:37 +00:00
|
|
|
tar xzf ec-$OS-$ARCH.tar.gz && \
|
2020-08-02 22:01:50 +00:00
|
|
|
mv ./bin/ec-$OS-$ARCH ./bin/editorconfig-checker
|
|
|
|
- name: Checking EditorConfig
|
2020-08-09 09:46:05 +00:00
|
|
|
if: env.GIT_DIFF
|
2020-08-02 22:01:50 +00:00
|
|
|
run: |
|
|
|
|
./bin/editorconfig-checker -disable-indentation \
|
|
|
|
${{ env.GIT_DIFF }}
|