From 3130a63c27ee88ff178ac4afc7d0509cb85a650b Mon Sep 17 00:00:00 2001 From: Nemanja Glumac <31325167+nemanjaglumac@users.noreply.github.com> Date: Fri, 29 Jul 2022 17:06:48 +0200 Subject: [PATCH] [CI] Conditionally run frontend checks in GHA (#24430) Ignore documentation, markdown files, e2e files and backend tests. --- .github/workflows/frontend-skipped-checks.yml | 53 +++++++++++++++++++ .github/workflows/frontend.yml | 7 +++ 2 files changed, 60 insertions(+) create mode 100644 .github/workflows/frontend-skipped-checks.yml diff --git a/.github/workflows/frontend-skipped-checks.yml b/.github/workflows/frontend-skipped-checks.yml new file mode 100644 index 00000000000..86cf5c9cb9a --- /dev/null +++ b/.github/workflows/frontend-skipped-checks.yml @@ -0,0 +1,53 @@ +name: Frontend + +on: + pull_request: + paths: + - "docs/**" + - "**.md" + - "**_test.clj" + - "**.cy.*.js" # .cy.spec.js, .cy.snap.js + - "frontend/test/__support__/e2e/**" + - "frontend/test/__runner__/*cypress*" + +jobs: + fe-linter-prettier: + runs-on: ubuntu-20.04 + timeout-minutes: 10 + steps: + - run: | + echo "Didn't run due to conditional filtering" + + fe-linter-eslint: + runs-on: ubuntu-20.04 + timeout-minutes: 20 + steps: + - run: | + echo "Didn't run due to conditional filtering" + + fe-type-check: + runs-on: ubuntu-20.04 + timeout-minutes: 10 + steps: + - run: | + echo "Didn't run due to conditional filtering" + + fe-tests-unit: + runs-on: ubuntu-20.04 + timeout-minutes: 20 + steps: + - run: | + echo "Didn't run due to conditional filtering" + + fe-tests-timezones: + runs-on: ubuntu-20.04 + timeout-minutes: 14 + steps: + - run: | + echo "Didn't run due to conditional filtering" + + fe-chromatic: + runs-on: ubuntu-20.04 + steps: + - run: | + echo "Didn't run due to conditional filtering" diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 2808cb89d51..c15e8a674ff 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -6,6 +6,13 @@ on: - 'master' - 'release-**' pull_request: + paths-ignore: + - "docs/**" + - "**.md" + - "**_test.clj" + - "**.cy.*.js" # .cy.spec.js, .cy.snap.js + - "frontend/test/__support__/e2e/**" + - "frontend/test/__runner__/*cypress*" jobs: fe-linter-prettier: -- GitLab