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