2020-05-20 16:59:45 +02:00
|
|
|
name: actions
|
2020-05-15 03:04:08 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
editorconfig:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-05-20 16:59:45 +02:00
|
|
|
- uses: actions/checkout@v2
|
2020-05-15 03:04:08 +02:00
|
|
|
- uses: technote-space/get-diff-action@v1.2.8
|
|
|
|
- name: editorconfig check
|
2020-05-20 16:59:45 +02:00
|
|
|
env:
|
|
|
|
VERSION: "2.0.4"
|
|
|
|
OS: "linux"
|
|
|
|
ARCH: "amd64"
|
2020-05-15 03:04:08 +02:00
|
|
|
run: |
|
2020-05-20 23:40:40 +02:00
|
|
|
curl -sSf -O -L -C - https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$VERSION/ec-$OS-$ARCH.tar.gz && \
|
2020-05-20 16:59:45 +02:00
|
|
|
tar xzf ec-$OS-$ARCH.tar.gz && \
|
|
|
|
./bin/ec-$OS-$ARCH -disable-indentation ${{ env.GIT_DIFF }}
|