Add Qom X yields adapter #6039
This file contains hidden or 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: Test_Change | |
| on: pull_request | |
| jobs: | |
| lockfile-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| - name: Validate root lockfile | |
| run: npm ci --dry-run --no-audit --no-fund | |
| - name: Validate adapters lockfile | |
| run: npm ci --dry-run --no-audit --no-fund | |
| working-directory: src/adaptors | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| - id: file_changes | |
| uses: tj-actions/changed-files@v44 | |
| - name: Record PR number | |
| run: | | |
| mkdir -p pr-comments | |
| echo "${{ github.event.number }}" > pr-comments/pr-number.txt | |
| - name: Run changes files through test script | |
| run: | | |
| RUN_FILES=$( | |
| MODIFIED="${{ steps.file_changes.outputs.modified_files }}" \ | |
| ADDED="${{ steps.file_changes.outputs.added_files }}" \ | |
| node ${{ github.workspace }}/.github/workflows/getFileList.js | |
| ) | |
| if [ "$RUN_FILES" = "[]" ]; then | |
| echo "No adapter files were modified" | |
| exit 0 | |
| fi | |
| npm ci | |
| for i in $(echo $RUN_FILES | tr -d '"[]' | tr "," "\n") | |
| do | |
| { | |
| npm run test --adapter=${i} 2>&1 | tee output.txt | |
| node ${{ github.workspace }}/.github/workflows/commentResult.js ${{ github.workspace }}/output.txt ${{ github.workspace }}/pr-comments ${i} | |
| if grep -qE "PASS\s+.*test\.js" output.txt; then | |
| exit 0; | |
| else | |
| exit 1; | |
| fi | |
| } || { | |
| echo -n $i | |
| echo ' doesnt run' | |
| } | |
| done | |
| - name: Upload PR comments artifact | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pr-comments | |
| path: pr-comments/ | |
| if-no-files-found: ignore | |
| retention-days: 1 |