Skip to content

Commit d46d26e

Browse files
committed
Merge branch 'development' into feat/oauth-sdk-integration
2 parents 3204461 + cdce068 commit d46d26e

83 files changed

Lines changed: 19038 additions & 22385 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ jobs:
186186
token: ${{ secrets.NPM_TOKEN }}
187187
package: ./packages/contentstack-import-setup/package.json
188188
access: public
189-
tag: beta
190189
- name: Installing dependencies of export to csv
191190
id: export-to-csv-installation
192191
if: ${{env.release_releaseAll == 'true' || env.release_plugins_export-to-csv == 'true'}}

.github/workflows/unit-test.yml

Lines changed: 39 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,44 @@ jobs:
1919
- name: Install dependencies for all plugins
2020
run: |
2121
npm run setup-repo-old
22-
23-
- name: Fetch latest references
24-
run: |
25-
git fetch --prune
26-
27-
- name: Identify Changed Plugins
28-
id: changes
29-
run: |
30-
echo "Finding changed files..."
31-
# Ensure both commit references are valid
32-
if [[ -z "${{ github.event.before }}" || -z "${{ github.sha }}" ]]; then
33-
echo "Error: Missing commit references"
34-
exit 1
35-
fi
36-
37-
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
38-
echo "Changed files:"
39-
echo "$CHANGED_FILES"
22+
23+
- name: Run tests for Audit plugin
24+
working-directory: ./packages/contentstack-audit
25+
run: npm run test:unit
26+
27+
# - name: Fetch latest references
28+
# run: |
29+
# git fetch --prune
30+
31+
# - name: Identify Changed Plugins
32+
# id: changes
33+
# run: |
34+
# echo "Finding changed files..."
35+
# # Ensure both commit references are valid
36+
# if [[ -z "${{ github.event.before }}" || -z "${{ github.sha }}" ]]; then
37+
# echo "Error: Missing commit references"
38+
# exit 1
39+
# fi
40+
41+
# CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
42+
# echo "Changed files:"
43+
# echo "$CHANGED_FILES"
4044

41-
# Identify affected plugins
42-
AFFECTED_PLUGINS=$(echo "$CHANGED_FILES" | grep -oP '(?<=^packages/)([^/]+)' | sort -u | tr '\n' ' ')
43-
echo "Affected plugins: $AFFECTED_PLUGINS"
45+
# # Identify affected plugins
46+
# AFFECTED_PLUGINS=$(echo "$CHANGED_FILES" | grep -oP '(?<=^packages/)([^/]+)' | sort -u | tr '\n' ' ')
47+
# echo "Affected plugins: $AFFECTED_PLUGINS"
4448

45-
# Set output for the next step
46-
echo "::set-output name=affected_plugins::$AFFECTED_PLUGINS"
47-
48-
- name: Run Unit Tests for Affected Plugins
49-
run: |
50-
for plugin in ${{ steps.changes.outputs.affected_plugins }}; do
51-
echo "Running tests for $plugin..."
52-
npm run test:unit --prefix ./packages/$plugin
53-
done
49+
# # Set output for the next step
50+
# echo "::set-output name=affected_plugins::$AFFECTED_PLUGINS"
51+
52+
# - name: Run Unit Tests for Affected Plugins
53+
# run: |
54+
# for plugin in ${{ steps.changes.outputs.affected_plugins }}; do
55+
# echo "Checking if tests should run for $plugin..."
56+
# if [[ "$plugin" == "contentstack-audit" ]]; then
57+
# echo "Running tests for contentstack-audit..."
58+
# npm run test:unit --prefix ./packages/contentstack-audit
59+
# else
60+
# echo "contentstack-audit has not changed. Skipping tests."
61+
# fi
62+
# done

0 commit comments

Comments
 (0)