diff --git a/.github/workflows/test-app-node-express.yml b/.github/workflows/test-app-node-express.yml index 9a1d2f48..0f4c373e 100644 --- a/.github/workflows/test-app-node-express.yml +++ b/.github/workflows/test-app-node-express.yml @@ -10,8 +10,7 @@ on: workflow_dispatch: jobs: - test: - name: test-app-node-express + test-app-node-express: runs-on: ubuntu-latest steps: @@ -21,5 +20,15 @@ jobs: - name: 🤳 Install uses: ./.github/composite-actions/install + - name: Check if backend files changed + id: check_if_backend_changed + run: | + if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^packages/app-node-express/'; then + echo "changed=true" >> $GITHUB_OUTPUT + else + echo "changed=false" >> $GITHUB_OUTPUT + fi + - name: 🚀 Run app-node-express Tests + if: steps.check_if_backend_changed.outputs.changed == 'true' run: pnpm run app-node-express:test diff --git a/.github/workflows/test-app-vite-react.yml b/.github/workflows/test-app-vite-react.yml index 88c27297..a583bc9d 100644 --- a/.github/workflows/test-app-vite-react.yml +++ b/.github/workflows/test-app-vite-react.yml @@ -10,8 +10,7 @@ on: workflow_dispatch: jobs: - test: - name: test-app-vite-react + test-app-vite-react: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test-lib-api-client.yml b/.github/workflows/test-lib-api-client.yml index 0aac58b1..463d4cba 100644 --- a/.github/workflows/test-lib-api-client.yml +++ b/.github/workflows/test-lib-api-client.yml @@ -10,8 +10,7 @@ on: workflow_dispatch: jobs: - test: - name: test-lib-api-client + test-lib-api-client: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test-lib-commons.yml b/.github/workflows/test-lib-commons.yml index 9323a8fe..e77cfc52 100644 --- a/.github/workflows/test-lib-commons.yml +++ b/.github/workflows/test-lib-commons.yml @@ -10,8 +10,7 @@ on: workflow_dispatch: jobs: - test: - name: test-lib-commons + test-lib-commons: runs-on: ubuntu-latest steps: