Add pre-commit to ci

This commit is contained in:
shamoon 2023-10-17 23:28:33 -07:00
parent f48cf0dc9f
commit 29827b1c70
2 changed files with 38 additions and 0 deletions

View file

@ -30,10 +30,28 @@ env:
jobs:
pre-commit:
name: Linting Checks
runs-on: ubuntu-22.04
steps:
-
name: Checkout repository
uses: actions/checkout@v4
-
name: Install python
uses: actions/setup-python@v4
with:
python-version: 3.x
-
name: Check files
uses: pre-commit/action@v3.0.0
build:
name: Docker Build & Push
if: github.repository == 'gethomepage/homepage'
runs-on: self-hosted
needs:
- pre-commit
permissions:
contents: read
packages: write