From c942ae7ce2d84ad18101a129f3e227ccb7c78b57 Mon Sep 17 00:00:00 2001 From: Caspian Zhao Date: Fri, 4 Oct 2024 22:19:41 +0800 Subject: [PATCH] CI: Updates CI trigger time (#691) * ci: add new CI job for testing * chore: remove unused linting before commit * ci: update testing CI * ci: update yarn caching logic * ci: refacor dependency caching logic in ci files * ci: update CI trigger time --- .github/workflows/ci.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd127692..a5366f2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,19 @@ name: CI on: - push: - branches: ["main"] pull_request: - branches: ["main"] - workflow_dispatch: + types: [opened, synchronize, reopened, ready_for_review] + + # allow manual triggers + workflow_dispatch: {} + +# Cancel in progress workflows on pull_requests. +# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +permissions: read-all jobs: test: