ci: changes for core24 snaps to build #136
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: Lint | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
- name: Run linters | |
run: | | |
make lint | |
- name: Run formatters | |
run: | | |
make format | |
- name: Check for modifications to generated files | |
run: | | |
if [[ -n "$(git status -s)" ]]; then | |
echo "Please run 'make format' then commit/push changes" | |
echo | |
git diff | |
exit 1 | |
fi |