From b8de4cc8393c59d4cb3c646ecde9678747ba7c62 Mon Sep 17 00:00:00 2001 From: Christopher Tannum Date: Tue, 27 Jun 2023 13:56:11 +0200 Subject: [PATCH] chore: add dummy for react components ci skip --- .github/workflows/ci-skip.yml | 1 + .github/workflows/ci.yml | 1 + .github/workflows/react-components-ci-skip.yml | 15 +++++++++++++++ .github/workflows/react-components-ci.yml | 11 ++--------- 4 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/react-components-ci-skip.yml diff --git a/.github/workflows/ci-skip.yml b/.github/workflows/ci-skip.yml index 4763a0bd4e1..58c39eae881 100644 --- a/.github/workflows/ci-skip.yml +++ b/.github/workflows/ci-skip.yml @@ -10,6 +10,7 @@ on: - "viewer/**" - "documentation/**" - "examples/**" + - ".github/workflows/ci.yml" types: - opened - synchronize diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c190985a76..391108e870a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,7 @@ on: - "viewer/**" - "documentation/**" - "examples/**" + - ".github/workflows/ci.yml" types: - opened - synchronize diff --git a/.github/workflows/react-components-ci-skip.yml b/.github/workflows/react-components-ci-skip.yml new file mode 100644 index 00000000000..6e66f2b3d41 --- /dev/null +++ b/.github/workflows/react-components-ci-skip.yml @@ -0,0 +1,15 @@ +name: React Components CI + +on: + pull_request: + paths-ignore: + - "react-components/**" + - ".github/workflows/react-components-ci.yml" + branches: + - "**" + +jobs: + react-components-ci: + runs-on: ubuntu-latest + steps: + - run: 'echo "Skip due to no changes in react-components"' diff --git a/.github/workflows/react-components-ci.yml b/.github/workflows/react-components-ci.yml index 2aafac6ffcc..9c7eaef42ba 100644 --- a/.github/workflows/react-components-ci.yml +++ b/.github/workflows/react-components-ci.yml @@ -4,25 +4,18 @@ on: pull_request: paths: - "react-components/**" + - ".github/workflows/react-components-ci.yml" branches: - "**" jobs: - install-dependencies: + react-components-ci: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: persist-credentials: false - - uses: actions/setup-node@v3 - with: - node-version: 18 - registry-url: "https://registry.npmjs.org" - always-auth: true - cache: "yarn" - cache-dependency-path: "react-components/yarn.lock" - - name: Setup Cognite CICD Yarn working-directory: react-components run: |