diff --git a/.github/workflows/v1773-fix-tests.yml b/.github/workflows/v1773-fix-tests.yml new file mode 100644 index 0000000..aed9595 --- /dev/null +++ b/.github/workflows/v1773-fix-tests.yml @@ -0,0 +1,39 @@ +name: Caterium v17.7.3 fix tests +on: + push: + branches: [feat/v17-7-3-clients-server-read] + paths: + - .github/workflows/v1773-fix-tests.yml +permissions: + contents: write +jobs: + fix: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: feat/v17-7-3-clients-server-read + - uses: actions/setup-node@v4 + with: + node-version: 22 + - name: Fix release assertions + run: | + node - <<'NODE' + const fs=require('fs'); + const p='tests/release-check.mjs'; + let s=fs.readFileSync(p,'utf8'); + s=s.replace("'17.7.0','17.7.1','17.7.3'","'17.7.0','17.7.1','17.7.2','17.7.3'"); + s=s.replace("v17.7.3 Clients Foundation","v17.7.3 Clients Server Read"); + fs.writeFileSync(p,s); + NODE + - run: npm install + - run: npm run check:deploy + - run: npx playwright install --with-deps chromium + - run: npm run test:e2e + - name: Commit fixes + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add tests/release-check.mjs + git commit -m "Fix v17.7.3 release assertions" || exit 0 + git push