Ralf Vogler 2025-05-14 00:46:37 +02:00
parent 6aea18836d
commit a5ce5ec816
3 changed files with 10 additions and 2 deletions

View file

@ -17,6 +17,9 @@ on:
branches:
- "main" # only PRs against main
permissions:
contents: read
jobs:
docker:
runs-on: ubuntu-latest

View file

@ -1,3 +1,5 @@
name: Sonar
on:
# Trigger analysis when pushing in main or pull requests, and when creating a pull request.
push:
@ -5,7 +7,10 @@ on:
- main
pull_request:
types: [opened, synchronize, reopened]
name: Sonar
permissions:
contents: read
jobs:
sonarcloud:
runs-on: ubuntu-latest

View file

@ -40,7 +40,7 @@ const auth = async (url) => {
console.log('auth', url);
await page.goto(url, { waitUntil: 'domcontentloaded' });
// redirects to https://login.aliexpress.com/?return_url=https%3A%2F%2Fwww.aliexpress.com%2Fp%2Fcoin-pc-index%2Findex.html
await Promise.any([page.waitForURL(/.*login.aliexpress.com.*/).then(async () => {
await Promise.any([page.waitForURL(/.*login\.aliexpress.com.*/).then(async () => {
// manual login
console.error('Not logged in! Will wait for 120s for you to login...');
// await page.waitForTimeout(120*1000);