Merge pull request #52 from canonical/renovate/core24-8-canonical-sna… #107
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: Run linters | |
on: | |
pull_request: | |
branches: | |
- 'core2[24]-[78]' | |
push: | |
branches: | |
- 'core2[24]-[78]' | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo snap install shellcheck | |
pip install -U yamllint | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Run ShellCheck | |
run: | | |
./tools/external/snapd-testing-tools/utils/spread-shellcheck tests/spread/ spread.yaml | |
- name: Run yamllint | |
run: | | |
yamllint --strict . |