acid-drop

- Hacking the planet from a LilyGo T-Deck using custom firmware
git clone git://git.acid.vegas/acid-drop.git
Log | Files | Refs | Archive | README | LICENSE

check_style.yml (1040B)

      1 name: Verify code formatting
      2 on:
      3   push:
      4   pull_request:
      5 
      6 jobs:
      7   verify-formatting:
      8     if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
      9     runs-on: ubuntu-latest
     10     steps:
     11       - name: Checkout
     12         uses: actions/checkout@v2
     13         with:
     14           persist-credentials: false
     15           fetch-depth: 0
     16       - name: Install astyle
     17         run: |
     18           sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
     19           sudo apt-get update -y -qq
     20           sudo apt-get install astyle
     21       - name: Format code
     22         run: python code-format.py
     23         working-directory: scripts
     24       - name: Check that repository is clean
     25         shell: bash
     26         run: |
     27           set -o pipefail
     28           if ! (git diff --exit-code --color=always | tee /tmp/lvgl_diff.patch); then
     29             echo "Please apply the preceding diff to your code or run scripts/code-format.py"
     30             exit 1
     31           fi