2020-07-31 00:21:13 +00:00
|
|
|
name: "Checking EditorConfig"
|
2020-07-31 16:34:37 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
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-03 07:17:56 +00:00
|
|
|
- uses: technote-space/get-diff-action@v2.0.3
|
2020-08-02 22:01:50 +00:00
|
|
|
- name: fetch editorconfig-checker
|
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
|
|
|
|
run: |
|
|
|
|
./bin/editorconfig-checker -disable-indentation \
|
|
|
|
${{ env.GIT_DIFF }}
|