From 943bdae8943373ffa7d11dbf30efdaf6ec0a18f9 Mon Sep 17 00:00:00 2001 From: danb Date: Thu, 13 Jul 2023 18:17:21 -0400 Subject: [PATCH] yaml lint (#151) * yaml lint * removed go actions --- .github/workflows/pre-commit.yaml | 20 ++++++++++++++++++++ .pre-commit-config.yaml | 5 +++++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/pre-commit.yaml create mode 100644 .pre-commit-config.yaml diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml new file mode 100644 index 0000000..9738f3a --- /dev/null +++ b/.github/workflows/pre-commit.yaml @@ -0,0 +1,20 @@ +name: pre-commit checks +on: + pull_request: + types: + - opened + - synchronize + - reopened + - ready_for_review + push: + branches: + - main +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pre-commit/action@v3.0.0 + - uses: pre-commit-ci/lite-action@v1.0.1 + # This will tell git to always run the pre-commit hook, even if the commit is a fast-forward + if: always() diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..2a906f3 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-yaml