From 65ab8f21a98aac092f3b72f22c70dd29ca88f480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ti=E1=BA=BFn=20Nguy=E1=BB=85n=20Kh=E1=BA=AFc?= Date: Sat, 20 Jul 2024 17:08:36 +1200 Subject: [PATCH] ci: verification workflow --- .github/workflows/pull-request.yml | 13 +++++++++++++ .github/workflows/verification.yml | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/pull-request.yml create mode 100644 .github/workflows/verification.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 00000000..09a0cb15 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,13 @@ +name: Pull request + +on: + pull_request: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + verify: + uses: ./.github/workflows/verification.yml diff --git a/.github/workflows/verification.yml b/.github/workflows/verification.yml new file mode 100644 index 00000000..81c5650e --- /dev/null +++ b/.github/workflows/verification.yml @@ -0,0 +1,15 @@ +name: Verify + +on: ["workflow_call", "workflow_dispatch"] + +jobs: + verify: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/setup + - run: yarn prettier --check . + - run: yarn lint + - run: yarn test + - run: yarn build