From 4619805d218cf1cb5a5fb9b32dc5dd4aa913a99a Mon Sep 17 00:00:00 2001 From: Bennett Goble Date: Tue, 4 Apr 2023 12:16:21 -0700 Subject: SL-19541: Add basic coding standards check Run Linden coding standard git-hooks in a basic Github actions workflow. --- .github/workflows/pre-commit.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/pre-commit.yaml (limited to '.github/workflows/pre-commit.yaml') diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml new file mode 100644 index 0000000000..17c0ace02f --- /dev/null +++ b/.github/workflows/pre-commit.yaml @@ -0,0 +1,18 @@ +name: pre-commit + +on: + pull_request: + push: + branches: [main, contribute] + tags: [v*] + + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.x + - uses: pre-commit/action@v3.0.0 -- cgit v1.2.3