feat: AGAIN changed metology of starting e2e tests, now after deployment-status is changed and url is active. No more certs in tests dir, aliluya, and all for github only. Gitea CI was made not by dufok, so let it be

This commit is contained in:
Stepan Vladovskiy 2024-07-04 21:12:34 +00:00
parent 7383433b58
commit a7e1a1763c
2 changed files with 38 additions and 1 deletions

37
.github/workflows/e2e-tests.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: "e2e tests"
on:
deployment_status:
types: [success]
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Wait for deployment to be live
run: |
echo "Waiting for Vercel deployment to be live..."
until curl -sSf https://testing3.discours.io > /dev/null; do
printf '.'
sleep 10
done
- name: Install Playwright and dependencies
run: npm run e2e:install
- name: Run Playwright tests
run: npm run e2e:tests:ci
env:
BASE_URL: https://testing3.discours.io

View File

@ -10,7 +10,7 @@
"start": "vinxi start",
"codegen": "graphql-codegen",
"e2e:tests": "npx playwright test --project=webkit",
"e2e:tests:ci": "CI=true BASE_URL=https://127.0.0.1:8080 npx playwright test --project=webkit",
"e2e:tests:ci": "CI=true npx playwright test --project=webkit",
"e2e:install": "npx playwright install webkit && npx playwright install-deps ",
"fix": "npx @biomejs/biome check . --fix && stylelint **/*.{scss,css} --fix",
"format": "npx @biomejs/biome format src/. --write",