feat: google ads new UI #3671
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
with: | |
fetch-depth: 1 | |
- name: Setup Node | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm run setup | |
- name: Run Tests | |
run: npm run test:ci | |
- name: Get changed files | |
id: changed_files | |
uses: tj-actions/changed-files@v45 | |
with: | |
sha: ${{ github.event.pull_request.head.sha }} | |
- name: Filter changed files for schema validation | |
id: filter_changed_files | |
run: | | |
CHANGED_FILES="${{ steps.changed_files.outputs.all_changed_files }}" | |
FILES_TO_VALIDATE=$(echo "$CHANGED_FILES" | tr ' ' '\n' | grep -v "src/configurations/sources" || true) | |
FILES_TO_VALIDATE=$(echo "$FILES_TO_VALIDATE" | tr '\n' ' ') | |
echo "files_to_validate=$FILES_TO_VALIDATE" >> $GITHUB_ENV | |
- name: Output Filtered files (remove later after sanity) | |
run: echo $files_to_validate | |
- name: Run schema validation for changed files | |
run: | | |
chmod +x scripts/run-schema-validation.sh | |
scripts/run-schema-validation.sh $files_to_validate |