From 276ec387fb98a2a9ea641be2d101e823095e4450 Mon Sep 17 00:00:00 2001 From: verytactical <186486509+verytactical@users.noreply.github.com> Date: Thu, 21 Nov 2024 20:59:41 +0400 Subject: [PATCH 1/4] fix(ci): restore lints --- .github/workflows/pull.yml | 43 ++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pull.yml diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml new file mode 100644 index 0000000..9aca49c --- /dev/null +++ b/.github/workflows/pull.yml @@ -0,0 +1,43 @@ +name: Pull request + +on: + pull_request: + branches: ['**'] + +jobs: + build: + runs-on: ubuntu-latest + + permissions: + packages: write + contents: read + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install dependencies + run: | + npm ci + + - name: Build Tact compiler + run: | + npm run build + + - name: Check formatting + run: | + npm run format:check + + - name: Run Next lint + run: | + npm run lint + + - name: Check commit names + run: | + commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose + diff --git a/package.json b/package.json index 1b7aa04..f04e0d8 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "lint": "next lint", "format:check": "prettier --check --ignore-path .prettierignore --ignore-path .gitignore .", "format:fix": "prettier --write --ignore-path .prettierignore --ignore-path .gitignore .", - "prepare": "husky", + "postinstall": "husky", "commit": "git-cz" }, "config": { From ee3e06074f806e083dd165be7af037d9dd8ffcb7 Mon Sep 17 00:00:00 2001 From: verytactical <186486509+verytactical@users.noreply.github.com> Date: Thu, 21 Nov 2024 21:10:28 +0400 Subject: [PATCH 2/4] fix: script --- .github/workflows/pull.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 9aca49c..2c51381 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -39,5 +39,5 @@ jobs: - name: Check commit names run: | - commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose + npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose From 903a314397e4de1e6a48972bbad0050a4bd87d87 Mon Sep 17 00:00:00 2001 From: verytactical <186486509+verytactical@users.noreply.github.com> Date: Thu, 21 Nov 2024 21:12:14 +0400 Subject: [PATCH 3/4] fix: naming --- .github/workflows/pull.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 2c51381..2faa65e 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -21,11 +21,11 @@ jobs: with: node-version: 18 - - name: Install dependencies + - name: Install run: | npm ci - - name: Build Tact compiler + - name: Build run: | npm run build From 54d1f1f1b45f2ee8d0af3f544b9f13faaa6b28a7 Mon Sep 17 00:00:00 2001 From: verytactical <186486509+verytactical@users.noreply.github.com> Date: Thu, 21 Nov 2024 21:21:07 +0400 Subject: [PATCH 4/4] fix: oh come on --- .github/workflows/pull.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 2faa65e..c34cd7c 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -36,8 +36,3 @@ jobs: - name: Run Next lint run: | npm run lint - - - name: Check commit names - run: | - npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose -