Skip to content

Commit

Permalink
ci: add Check Package job in Test workflow (#213)
Browse files Browse the repository at this point in the history
* ci: move check steps to Check job in Test workflow

* ci: add `Check Yarn Version` step in the `Check Package` job
  • Loading branch information
threeal authored Nov 29, 2023
1 parent 35edf00 commit d1ee9a8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ jobs:
- name: Install Dependencies
run: corepack enable && yarn install

- name: Check Format
run: yarn format && git diff --exit-code HEAD

- name: Check Lint
run: yarn lint

- name: Create Package
run: yarn pack

Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,31 @@ on:
push:
branches: [main]
jobs:
check-package:
name: Check Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1

- name: Cache Dependencies
uses: actions/cache@v3.3.2
with:
path: .yarn
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install Dependencies
run: corepack enable && yarn install

- name: Check Yarn Version
run: yarn set version stable && git diff --exit-code HEAD

- name: Check Format
run: yarn format && git diff --exit-code HEAD

- name: Check Lint
run: yarn lint

test-package:
name: Test Package
runs-on: ${{ matrix.os }}-latest
Expand Down

0 comments on commit d1ee9a8

Please sign in to comment.