From fb4b439f7b10f0c2a3ac7410e4158ca46f3080c0 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 10 Aug 2023 11:10:47 +0300 Subject: [PATCH] Fix ifs --- .github/workflows/budibase_ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index af135b757b..a94c56407f 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -69,7 +69,7 @@ jobs: # Run build all the projects - name: Build run: | - if [[ ${{ env.USE_NX_AFFECTED }} ]]; then + if ${{ env.USE_NX_AFFECTED }}; then yarn build --since=${{ env.NX_BASE_BRANCH }} else yarn build @@ -77,7 +77,7 @@ jobs: # Check the types of the projects built via esbuild - name: Check types run: | - if [[ ${{ env.USE_NX_AFFECTED }} ]]; then + if ${{ env.USE_NX_AFFECTED }}; then yarn check:types --since=${{ env.NX_BASE_BRANCH }} else yarn check:types @@ -107,7 +107,7 @@ jobs: - run: yarn --frozen-lockfile - name: Test run: | - if [[ ${{ env.USE_NX_AFFECTED }} ]]; then + if ${{ env.USE_NX_AFFECTED }}; then yarn test --ignore=@budibase/worker --ignore=@budibase/server --ignore=@budibase/pro --since=${{ env.NX_BASE_BRANCH }} else yarn test --ignore=@budibase/worker --ignore=@budibase/server --ignore=@budibase/pro @@ -142,7 +142,7 @@ jobs: - run: yarn --frozen-lockfile - name: Test worker and server run: | - if [[ ${{ env.USE_NX_AFFECTED }} ]]; then + if ${{ env.USE_NX_AFFECTED }}; then yarn test --scope=@budibase/worker --scope=@budibase/server --since=${{ env.NX_BASE_BRANCH }} else yarn test --scope=@budibase/worker --scope=@budibase/server @@ -173,7 +173,7 @@ jobs: - run: yarn --frozen-lockfile - name: Test run: | - if [[ ${{ env.USE_NX_AFFECTED }} ]]; then + if ${{ env.USE_NX_AFFECTED }}; then yarn test --scope=@budibase/pro --since=${{ env.NX_BASE_BRANCH }} else yarn test --scope=@budibase/pro