From dc10039104652fba73ee8734d7fb6d9d82869316 Mon Sep 17 00:00:00 2001 From: Tristan Chin Date: Tue, 1 Aug 2023 21:24:06 -0400 Subject: [PATCH] [monorepo] Edit workflows --- .github/workflows/develop.yml | 16 ++++------------ .github/workflows/pull_request.yml | 20 ++++++++------------ 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index fae9f8d..16cbf8f 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -3,10 +3,11 @@ name: Develop Check on: push: branches: - - 'develop' + - "develop" jobs: - build: + develop_check: + name: Develop Check runs-on: ubuntu-latest steps: - name: Checkout code @@ -17,15 +18,6 @@ jobs: - name: Build code run: npm run build - test: - runs-on: ubuntu-latest - needs: build - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Install dependencies - run: npm install - name: Run tests - run: npm run test \ No newline at end of file + run: npm run test diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 8984932..edadfc4 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -3,10 +3,15 @@ name: Pull Request Check on: pull_request: branches: - - '**' + - "**" + +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.sha }} + cancel-in-progress: true jobs: - build: + pr_check: + name: PR Check runs-on: ubuntu-latest steps: - name: Checkout code @@ -17,15 +22,6 @@ jobs: - name: Build code run: npm run build - test: - runs-on: ubuntu-latest - needs: build - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Install dependencies - run: npm install - name: Run tests - run: npm run test \ No newline at end of file + run: npm run test