Skip to content

Commit

Permalink
ci: separate check-package job to check workflow (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal authored Jun 7, 2024
1 parent 76e9870 commit 069b7a2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 25 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
check-workspaces:
name: Check Workspaces
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: latest

- name: Setup Yarn
uses: threeal/[email protected]
with:
version: stable

- name: Check Format
run: |
yarn workspaces foreach --all --topological run format
git diff --exit-code HEAD
- name: Check Lint
run: yarn workspaces foreach --all --topological run lint
25 changes: 0 additions & 25 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,6 @@ on:
push:
branches: [main]
jobs:
check-workspaces:
name: Check Workspaces
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: latest

- name: Setup Yarn
uses: threeal/[email protected]
with:
version: stable

- name: Check Format
run: |
yarn workspaces foreach --all --topological run format
git diff --exit-code HEAD
- name: Check Lint
run: yarn workspaces foreach --all --topological run lint

test-workspaces:
name: Test Workspaces
runs-on: ubuntu-latest
Expand Down

0 comments on commit 069b7a2

Please sign in to comment.