From 45373490271f5a8d5b55820bbb04e49c2cb08595 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Thu, 17 Aug 2023 19:22:29 +0100 Subject: [PATCH] ci: test client prs with typechecking before merge --- .github/workflows/client.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index 3d0e74554..4025baefa 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -8,10 +8,17 @@ on: paths: - "client/**" - "common/**" + pull_request: + branches: + - "staging" + - "release/*" + paths: + - "client/**" + - "common/**" workflow_dispatch: jobs: - deploy: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -30,7 +37,9 @@ jobs: - name: Typecheck run: pnpm --filter tachi-client typecheck - + deploy: + runs-on: ubuntu-latest + steps: - name: Deploy to staging if: github.ref == 'refs/heads/staging' uses: appleboy/ssh-action@1a8b3784eaa665f677fa114edd5683bb6a6bfaa8