Remove transform on table difference icon to display better on most OS/browsers #12
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
on: | |
# Run any time any issue/PR has a new comment | |
issue_comment: | |
types: [created] | |
name: Update Snapshots | |
jobs: | |
update-snapshots: | |
runs-on: ubuntu-latest | |
# This job will only run if the comment was on a pull requests and matches the slash command | |
if: ${{ github.event.issue.pull_request && github.event.comment.body == '/update-snapshots'}} | |
timeout-minutes: 60 | |
steps: | |
- id: 'get-branch' | |
run: echo "branch=$(gh pr view $PR_NO --repo $REPO --json headRefName --jq '.headRefName')" >> $GITHUB_OUTPUT | |
env: | |
REPO: ${{ github.repository }} | |
PR_NO: ${{ github.event.issue.number }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ steps.get-branch.outputs.branch }} | |
token: ${{ secrets.GH_ACTION_TOKEN }} | |
- name: Make shared env | |
uses: ./.github/actions/make-shared-env | |
with: | |
dh-username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dh-password: ${{ secrets.DOCKERHUB_TOKEN }} | |
ghcr-username: ${{ github.actor }} | |
ghcr-password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run deps | |
run: scripts/run-dependencies.sh | |
- name: Start Kotlin server | |
run: scripts/run-kotlin-server.sh | |
- name: Install playwright et al | |
run: | | |
cd src/app/static | |
npm install @playwright/test@1.35.1 | |
npx playwright install chromium | |
npx playwright install-deps chromium | |
- name: Update snapshots | |
run: | | |
cd src/app/static | |
npx playwright test --update-snapshots --reporter=list | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Update Snapshots | |
file_pattern: '*.png' |