Skip to content

Commit

Permalink
chore: Add smoke test to CI deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk committed Aug 9, 2024
1 parent 1bba412 commit 509120a
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/update-lost-pixel-baseline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Update Lost Pixel Baseline

# Run this workflow to update the Lost Pixel baseline on a PR.

on: workflow_dispatch

jobs:
lost-pixel-update:
runs-on: ubuntu-latest
# Only run this job on branches other than master; this is to prevent the Lost Pixel baseline from being updated on the master branch.
# The baseline should only be updated on PRs, not on the master branch.
if: ${{ github.ref != 'refs/heads/master' }}
steps:
- name: Checkout validator site
uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install
run: npm install
- name: Test
run: npm test
- name: Start server (in background)
run: npm run start &

- name: Lost Pixel
id: lp
uses: lost-pixel/lost-pixel@v3.8.0
env:
LOST_PIXEL_MODE: update
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
if: ${{ failure() && steps.lp.conclusion == 'failure' }}
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
commit-message: Update lost-pixel baselines
committer: openactive-bot <openactive-bot@users.noreply.github.com>
author: openactive-bot <openactive-bot@users.noreply.github.com>
signoff: false
branch: 'lost-pixel-update/${{ github.ref_name }}'
delete-branch: true
title: 'Lost Pixel update - ${{ github.ref_name }}'
body: Automated baseline update PR created by Lost Pixel
labels: |
automated pr
draft: false

0 comments on commit 509120a

Please sign in to comment.