Add image background support in RiverAccordion #5992
Workflow file for this run
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: UI test | |
| on: | |
| pull_request: | |
| jobs: | |
| test: | |
| if: ${{ github.repository == 'primer/brand' }} | |
| name: Primitives diff | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Checkout reference branch | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.base_ref }} | |
| path: temp-main | |
| - name: Set up Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.14.1 | |
| - name: Cache dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Install dependencies (reference) | |
| run: pushd temp-main; npm ci; popd | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build (reference) | |
| run: pushd temp-main; npm run build --workspace=packages/design-tokens; popd | |
| - name: Build | |
| run: npm run build --workspace=packages/design-tokens | |
| - name: Export diff | |
| run: | | |
| diff -r -y --width=300 -B -I 'Generated' --suppress-common-lines temp-main/packages/design-tokens/lib/design-tokens/css packages/design-tokens/lib/design-tokens/css | tail -n +2 > diff.txt | |
| npm exec -- tsx packages/design-tokens/scripts/ci-check-diff.ts | |
| - name: Read raw diff | |
| if: hashFiles('diff.md') != '' | |
| id: diff | |
| uses: juliangruber/read-file-action@271ff311a4947af354c6abcd696a306553b9ec18 # v1.1.8 | |
| with: | |
| path: ./diff.md | |
| - name: Post diff | |
| if: hashFiles('diff.md') != '' | |
| uses: phulsechinmay/rewritable-pr-comment@a1b041997fa84ec3e524ee9dee5ba0b5f4e73604 # v0.3.0 | |
| with: | |
| message: ${{ steps.diff.outputs.content }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| COMMENT_IDENTIFIER: 'primitives-diff' | |
| - name: Comment on the PR about no results | |
| if: hashFiles('diff.md') == '' | |
| uses: phulsechinmay/rewritable-pr-comment@a1b041997fa84ec3e524ee9dee5ba0b5f4e73604 # v0.3.0 | |
| with: | |
| message: | | |
| ### 🟢 No design token changes found | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| COMMENT_IDENTIFIER: 'primitives-diff' |