Skip to content

chore: update all non-major dependencies #533

chore: update all non-major dependencies

chore: update all non-major dependencies #533

Workflow file for this run

name: Backstop Test
on: pull_request
jobs:
backstop-test:
name: backstop-test (${{ matrix.os }}_${{ matrix.browser }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
browser: [chromium, firefox, webkit]
runs-on: ${{ matrix.os }}
continue-on-error: true
outputs:
outcome: ${{ env.outcome }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npm ci --ignore-scripts
- run: node scripts/ci/modify-backstop-config.js ${{ matrix.browser }}
- run: npm run test:backstop:install:${{ matrix.browser }}
- run: npm run test:backstop || echo "outcome=failure" >> $GITHUB_ENV ; exit 0
- uses: actions/upload-artifact@v4
if: always()
with:
name: backstop-report-${{ matrix.os }}_${{ matrix.browser }}
path: backstop_data/
retention-days: 30
backstop-conclusion:
runs-on: ubuntu-latest
needs: backstop-test
if: always()
steps:
- run: |
echo "icon=✅" >> $GITHUB_ENV
echo "text=succeeded" >> $GITHUB_ENV
- if: ${{ needs['backstop-test'].outputs.outcome == 'failure' }}
run: |
echo "icon=🚨" >> $GITHUB_ENV
echo "text=failed" >> $GITHUB_ENV
- uses: actions/github-script@v7
with:
script: |
const { icon, text } = process.env
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `# ${icon} Backstop tests ${text}`
})