@@ -18,94 +18,20 @@ jobs:
1818
1919 - name : Install dependencies for all plugins
2020 run : |
21- NODE_ENV=PREPACK_MODE npm run setup-repo-old
21+ NODE_ENV=PREPACK_MODE npm run bootstrap
22+
23+ - name : Build all plugins
24+ run : |
25+ NODE_ENV=PREPACK_MODE npm run build
2226
2327 - name : Run tests for Contentstack Command
2428 working-directory : ./packages/contentstack-command
2529 run : npm run test:unit
2630
27- - name : Run tests for Contentstack Import Plugin
28- working-directory : ./packages/contentstack-import
29- run : npm run test:unit
30-
31- - name : Run tests for Contentstack Export Plugin
32- working-directory : ./packages/contentstack-export
33- run : npm run test:unit
34-
35- - name : Run tests for Audit plugin
36- working-directory : ./packages/contentstack-audit
37- run : npm run test:unit
38-
3931 - name : Run tests for Contentstack Config
4032 working-directory : ./packages/contentstack-config
4133 run : npm run test:unit
4234
43- - name : Run tests for Contentstack Migration
44- working-directory : ./packages/contentstack-migration
45- run : npm run test
46-
47- - name : Run tests for Contentstack Export To CSV
48- working-directory : ./packages/contentstack-export-to-csv
49- run : NODE_ENV=PREPACK_MODE npm run test:unit
50-
51- - name : Run tests for Contentstack Bootstrap
52- working-directory : ./packages/contentstack-bootstrap
53- run : npm run test
54-
5535 - name : Run tests for Contentstack Auth
5636 working-directory : ./packages/contentstack-auth
5737 run : NODE_ENV=PREPACK_MODE npm run test
58-
59- # - name: Run tests for Contentstack Import Setup
60- # working-directory: ./packages/contentstack-import-setup
61- # run: npm run test:unit
62-
63- # TODO: Uncomment this when the tests are fixed
64- # - name: Run tests for Contentstack Bulk Publish
65- # working-directory: ./packages/contentstack-bulk-publish
66- # run: npm run test:unit
67-
68- - name : Run tests for Contentstack Branches
69- working-directory : ./packages/contentstack-branches
70- run : npm run test:unit
71-
72- - name : Run tests for Contentstack Clone
73- working-directory : ./packages/contentstack-clone
74- run : npm run test:unit
75-
76- # - name: Fetch latest references
77- # run: |
78- # git fetch --prune
79-
80- # - name: Identify Changed Plugins
81- # id: changes
82- # run: |
83- # echo "Finding changed files..."
84- # # Ensure both commit references are valid
85- # if [[ -z "${{ github.event.before }}" || -z "${{ github.sha }}" ]]; then
86- # echo "Error: Missing commit references"
87- # exit 1
88- # fi
89-
90- # CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
91- # echo "Changed files:"
92- # echo "$CHANGED_FILES"
93-
94- # # Identify affected plugins
95- # AFFECTED_PLUGINS=$(echo "$CHANGED_FILES" | grep -oP '(?<=^packages/)([^/]+)' | sort -u | tr '\n' ' ')
96- # echo "Affected plugins: $AFFECTED_PLUGINS"
97-
98- # # Set output for the next step
99- # echo "::set-output name=affected_plugins::$AFFECTED_PLUGINS"
100-
101- # - name: Run Unit Tests for Affected Plugins
102- # run: |
103- # for plugin in ${{ steps.changes.outputs.affected_plugins }}; do
104- # echo "Checking if tests should run for $plugin..."
105- # if [[ "$plugin" == "contentstack-audit" ]]; then
106- # echo "Running tests for contentstack-audit..."
107- # npm run test:unit --prefix ./packages/contentstack-audit
108- # else
109- # echo "contentstack-audit has not changed. Skipping tests."
110- # fi
111- # done
0 commit comments