From 4a17a1369445e7baa8400892d2ba38577a26e230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=9Fur=20Eren?= Date: Tue, 3 Dec 2024 03:50:56 +0300 Subject: [PATCH] ci: add core & hooks ci jobs --- .github/workflows/core.yml | 38 +++++++++++++++++++++++++++++++++++++ .github/workflows/hooks.yml | 38 +++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 .github/workflows/core.yml create mode 100644 .github/workflows/hooks.yml diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml new file mode 100644 index 00000000..2af24dcb --- /dev/null +++ b/.github/workflows/core.yml @@ -0,0 +1,38 @@ +name: Core + +on: + push: + paths: [packages/core/**] + pull_request: + paths: [packages/core/**] + +permissions: read-all + +jobs: + check: + defaults: + run: + working-directory: packages/core + + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '18' + + - name: Install dependencies + run: yarn install + + - name: Lint + run: yarn lint + + - name: Test + run: yarn test + + - name: Build + run: yarn build diff --git a/.github/workflows/hooks.yml b/.github/workflows/hooks.yml new file mode 100644 index 00000000..b6bd2bb0 --- /dev/null +++ b/.github/workflows/hooks.yml @@ -0,0 +1,38 @@ +name: Hooks + +on: + push: + paths: [packages/hooks/**] + pull_request: + paths: [packages/hooks/**] + +permissions: read-all + +jobs: + check: + defaults: + run: + working-directory: packages/hooks + + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '18' + + - name: Install dependencies + run: yarn install + + - name: Lint + run: yarn lint + + - name: Test + run: yarn test + + - name: Build + run: yarn build