From b64e167622b3b5d47810d0058c92faa158eded7a Mon Sep 17 00:00:00 2001 From: kos Date: Tue, 26 Dec 2023 15:47:01 +0100 Subject: [PATCH] feat: add github pre-commit action --- .github/workflows/pre-commit.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..1000c33 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,20 @@ +--- +name: pre-commit + +on: push + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + with: + python-version: '3.9' + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: apt-get -yqq update && apt-get install -yqq eslint + - run: npm install --legacy-peer-deps + # - uses: sibiraj-s/action-eslint@v3 + - uses: pre-commit/action@v3.0.0