Merge pull request #46 from CreatingNull/dependabot/github_actions/lu… #138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pre-commit | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
- name: Install System Dependancies | |
run: | | |
pip install --upgrade pip wheel | |
sudo apt-get update -y | |
sudo apt-get install -y cppcheck | |
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/install.sh | sh -s 1.2.1 | |
echo "${PWD}/bin/" >> $GITHUB_PATH | |
- name: Run Pre-Commit | |
uses: pre-commit/[email protected] |