test: use shared as integration-tests level (#12278)

This commit is contained in:
Harminder Virk
2025-04-28 18:41:19 +05:30
committed by GitHub
parent 5f4a859911
commit 552dc52228
27 changed files with 173 additions and 213 deletions

View File

@@ -5,7 +5,6 @@ on:
paths:
- packages/admin/dashboard/src/i18n/translations/**
jobs:
i18n-validation-admin-dashboard:
runs-on: ubuntu-latest
@@ -17,10 +16,10 @@ jobs:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
node-version: "20"
cache: "yarn"
- name: Install dependencies
working-directory: packages/admin/dashboard
@@ -30,18 +29,18 @@ jobs:
working-directory: packages/admin/dashboard
run: |
git diff --name-only --diff-filter=A origin/develop HEAD -- src/i18n/translations > i18n_added_files.txt
cat i18n_added_files.txt
while read -r file; do
# Get the base name of the file
filename=$(basename "$file")
# Skip those items
if [ "$filename" = "\$schema.json" ] || [ "$filename" = "index.ts" ] || [ -d "$file" ]; then
continue
fi
# Run validation on the file
yarn i18n:validate "$filename"
done < i18n_added_files.txt