Skip to content

add container build/deploy job and improve run pattern #105

add container build/deploy job and improve run pattern

add container build/deploy job and improve run pattern #105

Workflow file for this run

name: Lint Files
on:
push:
branches:
- "*"
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: install Poetry
uses: snok/[email protected]
- name: install dependencies
run: poetry install
- name: flake8 check
run: poetry run flake8 .
- name: black check
run: poetry run black --check --diff .
- name: ensure shell scripts are formatted
run: |
while IFS= read -r -d '' filename; do
echo "processing ${filename}"
docker run --rm -v "$(pwd):/mnt" koalaman/shellcheck:latest -x "${filename}"
done < <(find . -type f -name "*.sh" ! -path "*/.git/*" -print0)
- name: Yaml file linting
run: |
docker run --rm \
-v $(pwd):/code \
registry.gitlab.com/pipeline-components/yamllint:latest -s .