diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 6d76a6e..47cd95c 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -5,15 +5,16 @@ on: branches: [main] push: branches: [main] - workflow_call: jobs: + prepare: + uses: './.github/workflows/prepare.yml' + lint: + needs: [prepare] runs-on: ubuntu-latest name: Linting steps: - - uses: './.github/workflows/prepare.yml' - - name: Check style run: | pnpm prettier diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b2c3623..edb5e85 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,19 +1,21 @@ name: Code Test + on: pull_request: branches: [main] push: branches: [main] - workflow_call: jobs: + prepare: + uses: './.github/workflows/prepare.yml' + test: + needs: [prepare] runs-on: ubuntu-latest name: Testing steps: - - uses: './.github/workflows/prepare.yml' - - name: Test run: | pnpm test