Skip to content

Commit

Permalink
ci: add core & hooks ci jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur-eren committed Dec 3, 2024
1 parent e1bcd90 commit 4a17a13
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
@@ -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
38 changes: 38 additions & 0 deletions .github/workflows/hooks.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4a17a13

Please sign in to comment.