Bugfix/html template #138
Workflow file for this run
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: [master] | |
jobs: | |
pre-commit: | |
# Run the test inside a centos8 container | |
runs-on: ubuntu-latest | |
container: golang:buster | |
steps: | |
# Make pip3 work | |
- name: Install Dependencies apt | |
run: | | |
apt update && \ | |
apt-get install -y python3 python3-pip python3-setuptools git wget python3-yaml | |
- uses: actions/checkout@v2 | |
# Install requirements and latest ansible | |
- name: Install Dependencies pip | |
run: | | |
pip3 install pre-commit | |
# Validate all files in the repo | |
- name: Run pre-commit | |
run: | | |
git config --global --add safe.directory /__w/vals-operator/vals-operator | |
pre-commit run --all-files -v || (cat /github/home/.cache/pre-commit/pre-commit.log && exit 1) |