From 19f0d0e5e0fa58f1ed715456112aef9069a74f60 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 | 39 ++++++++++++++++++++++++++++++++ .github/workflows/hooks.yml | 44 +++++++++++++++++++++++++++++++++++++ 2 files changed, 83 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..74dd56ad --- /dev/null +++ b/.github/workflows/core.yml @@ -0,0 +1,39 @@ +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 + working-directory: ./ + + - 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..36998105 --- /dev/null +++ b/.github/workflows/hooks.yml @@ -0,0 +1,44 @@ +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 + working-directory: ./ + + # Core package is required for hooks to test and build + - name: Build Core + run: yarn build + working-directory: ./packages/core + + - name: Lint + run: yarn lint + + - name: Test + run: yarn test + + - name: Build Hooks + run: yarn build