From 2abb3cd1df56db3225927a4a4983ef7b9e4dffbe Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Sat, 8 Jun 2024 22:01:34 +0700 Subject: [PATCH] ci: separate `check-package` job to `check` workflow (#330) --- .github/workflows/check.yaml | 31 +++++++++++++++++++++++++++++++ .github/workflows/test.yaml | 25 ------------------------- 2 files changed, 31 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/check.yaml diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..1dd3466 --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,31 @@ +name: Check +on: + workflow_dispatch: + pull_request: + push: + branches: [main] +jobs: + check-package: + name: Check Package + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.1.6 + + - name: Setup Node.js + uses: actions/setup-node@v4.0.2 + with: + node-version: latest + + - name: Setup Yarn + uses: threeal/setup-yarn-action@v2.0.0 + with: + version: stable + + - name: Check Format + run: | + yarn format + git diff --exit-code HEAD + + - name: Check Lint + run: yarn lint diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2b42158..adf5327 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -5,31 +5,6 @@ on: push: branches: [main] jobs: - check-package: - name: Check Package - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4.1.6 - - - name: Setup Node.js - uses: actions/setup-node@v4.0.2 - with: - node-version: latest - - - name: Setup Yarn - uses: threeal/setup-yarn-action@v2.0.0 - with: - version: stable - - - name: Check Format - run: | - yarn format - git diff --exit-code HEAD - - - name: Check Lint - run: yarn lint - test-package: name: Test Package runs-on: ubuntu-latest