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.
This commit is contained in:
Benoit Blanchon
2021-07-15 11:41:52 +02:00
parent 8a9a26588c
commit 40723a4cc7

View File

@ -3,22 +3,24 @@ name: Continuous Integration
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
clang-format: lint:
name: Clang-Format name: Lint
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Install - name: Install
run: sudo apt-get install -y clang-format run: sudo apt-get install -y clang-format
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Format - name: Symlinks
run: find src/ extras/ -name '*.[ch]pp' | xargs clang-format -i --verbose --style=file run: find * -type l -printf "::error::%p is a symlink. This is forbidden by the Arduino Library Specification." -exec false {} +
- name: Diff - name: Clang-format
run: git diff --exit-code run: |
find src/ extras/ -name '*.[ch]pp' | xargs clang-format -i --verbose --style=file
git diff --exit-code
gcc: gcc:
name: GCC name: GCC
needs: clang-format needs: lint
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
@ -66,7 +68,7 @@ jobs:
clang: clang:
name: Clang name: Clang
needs: clang-format needs: lint
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false