ci: add check-package job in test workflow (#118)

* ci: move check steps to `check-package` job in `test` workflow

* ci(build): merge check differences step to bundle package step

* ci(test): check Yarn version in the `check-package` job
This commit is contained in:
Alfi Maulana
2023-12-12 13:03:02 +07:00
committed by GitHub
parent 3d7ddb3fa0
commit 19dbdac998
2 changed files with 36 additions and 12 deletions

View File

@@ -17,8 +17,8 @@ jobs:
with:
node-version: latest
- name: Update Yarn
run: corepack enable && yarn set version stable
- name: Enable Yarn
run: corepack enable yarn
- name: Cache Dependencies
uses: actions/cache@v3.3.2
@@ -29,14 +29,5 @@ jobs:
- name: Install Dependencies
run: yarn install
- name: Check Format
run: yarn format
- name: Check Lint
run: yarn lint
- name: Bundle Package
run: yarn bundle
- name: Check Differences
run: git diff --exit-code HEAD
run: yarn bundle && git diff --exit-code HEAD