Skip to content

Commit c5f3cc2

Browse files
authored
fix(ci): expose backendTests output and improve smart test execution (#457)
* fix: Fixed linting issues * fix(ci): expose backendTests output and improve smart test execution
1 parent 176a2bc commit c5f3cc2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/scripts/ciScript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = async ({ github, context, core }) => {
5656
backendFiles,
5757
backendTests,
5858
mobileFiles,
59-
webFiles
59+
webFiles,
6060
});
6161

6262
core.setOutput(

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
backendFiles: ${{ steps.detect.outputs.backendFiles }}
1919
mobileFiles: ${{ steps.detect.outputs.mobileFiles }}
2020
webFiles: ${{ steps.detect.outputs.webFiles }}
21+
backendTests: ${{ steps.detect.outputs.backendTests }}
2122

2223
steps:
2324
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
@@ -60,7 +61,7 @@ jobs:
6061
- name: Backend test
6162
id: backend_test
6263
continue-on-error: true
63-
run: cd apps/backend && pnpm test ${{ needs.detect-changes.outputs.backendFiles }}
64+
run: cd apps/backend && pnpm test ${{ needs.detect-changes.outputs.backendTests }}
6465

6566
- name: Backend typecheck
6667
id: backend_typecheck

0 commit comments

Comments
 (0)