From 40723a4cc75a2dded67c2ca80ee8f56898ef5f49 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Thu, 15 Jul 2021 11:41:52 +0200 Subject: [PATCH] CI: check that the repository doesn't contain any symlink The Arduino Library Specification forbids symlinks, that's probably the reason why version 6.18.1 is missing from the Library Manager. --- .github/workflows/ci.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00bbb7da..6ef34b13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,22 +3,24 @@ name: Continuous Integration on: [push, pull_request] jobs: - clang-format: - name: Clang-Format + lint: + name: Lint runs-on: ubuntu-20.04 steps: - name: Install run: sudo apt-get install -y clang-format - name: Checkout uses: actions/checkout@v2 - - name: Format - run: find src/ extras/ -name '*.[ch]pp' | xargs clang-format -i --verbose --style=file - - name: Diff - run: git diff --exit-code + - name: Symlinks + run: find * -type l -printf "::error::%p is a symlink. This is forbidden by the Arduino Library Specification." -exec false {} + + - name: Clang-format + run: | + find src/ extras/ -name '*.[ch]pp' | xargs clang-format -i --verbose --style=file + git diff --exit-code gcc: name: GCC - needs: clang-format + needs: lint runs-on: ubuntu-20.04 strategy: fail-fast: false @@ -66,7 +68,7 @@ jobs: clang: name: Clang - needs: clang-format + needs: lint runs-on: ubuntu-20.04 strategy: fail-fast: false