36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
name: Fix Caterium v17.6.5 E2E expectation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- feature/v17.6.5-stability
|
|
paths:
|
|
- .github/workflows/fix-v1765-test-expectation.yml
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
patch:
|
|
if: github.actor != 'github-actions[bot]'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Update expected performance version
|
|
run: |
|
|
python3 - <<'PY'
|
|
from pathlib import Path
|
|
p=Path('tests/app.spec.mjs')
|
|
s=p.read_text()
|
|
old="expect(result.version).toBe('17.6.4');"
|
|
assert s.count(old)==1, s.count(old)
|
|
p.write_text(s.replace(old,"expect(result.version).toBe('17.6.5');"))
|
|
PY
|
|
- name: Commit test expectation
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add tests/app.spec.mjs
|
|
git commit -m "Update v17.6.5 E2E version expectation"
|
|
git push
|