Add hadolint check #10
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: Tests | |
on: | |
push: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check_hooks: | |
name: Check hooks work | |
timeout-minutes: 15 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install pre-commit | |
run: | | |
apk update && apk add python3 python3-dev py3-pip git go build-base | |
pip install pre-commit --ignore-installed distlib | |
pre-commit install --install-hooks | |
- name: Run pre-commit hooks | |
run: | | |
pre-commit run --all-files --show-diff-on-failure |