Skip to content

Commit

Permalink
chore: update yml ci
Browse files Browse the repository at this point in the history
  • Loading branch information
brunotot committed Sep 1, 2024
1 parent 7bcd67e commit dd39d7e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test-app-node-express.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ on:
workflow_dispatch:

jobs:
test:
name: test-app-node-express
test-app-node-express:
runs-on: ubuntu-latest

steps:
Expand All @@ -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
3 changes: 1 addition & 2 deletions .github/workflows/test-app-vite-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ on:
workflow_dispatch:

jobs:
test:
name: test-app-vite-react
test-app-vite-react:
runs-on: ubuntu-latest

steps:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test-lib-api-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ on:
workflow_dispatch:

jobs:
test:
name: test-lib-api-client
test-lib-api-client:
runs-on: ubuntu-latest

steps:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test-lib-commons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ on:
workflow_dispatch:

jobs:
test:
name: test-lib-commons
test-lib-commons:
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit dd39d7e

Please sign in to comment.