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