Skip to content

Bump carlosperate/download-file-action from 1.1.1 to 2.0.1 #37

Bump carlosperate/download-file-action from 1.1.1 to 2.0.1

Bump carlosperate/download-file-action from 1.1.1 to 2.0.1 #37

name: Lint Code
on:
- push
- pull_request
jobs:
check-formatting:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3.0.2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install tox --fix-missing
sudo snap install node --classic
sudo npm install --save-dev --save-exact -g prettier
- name: Check Python formatting
run: |
tox -e lint
- name: Check YAML formatting
run: |
set -eux
prettier --check $(find . -name "*.yaml" -o -name "*.yml" | \
grep -v "./microk8s-resources/actions/ingress.yaml" | \
grep -v "./microk8s-resources/actions/metallb.yaml" | \
grep -v invalid.yaml | \
grep -v calico)