Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix playwright tests and remove argos #1992

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
217601d
ci: fix playwright install
aeneasr Jan 8, 2025
c45402f
chore: synchronize workspaces
aeneasr Jan 8, 2025
ea5b189
chore: synchronize workspaces
aeneasr Jan 8, 2025
c436495
chore: synchronize workspaces
aeneasr Jan 8, 2025
8b9d1a5
chore: synchronize workspaces
aeneasr Jan 8, 2025
49bbbe7
chore: synchronize workspaces
aeneasr Jan 8, 2025
c8fdf56
chore: synchronize workspaces
aeneasr Jan 8, 2025
f345ee3
chore: synchronize workspaces
aeneasr Jan 8, 2025
ec6bdcc
chore: synchronize workspaces
aeneasr Jan 8, 2025
2035326
chore: synchronize workspaces
aeneasr Jan 8, 2025
b3ef1ad
chore: synchronize workspaces
aeneasr Jan 8, 2025
d107068
chore: synchronize workspaces
aeneasr Jan 8, 2025
b1f2e6d
chore: synchronize workspaces
aeneasr Jan 8, 2025
98defe7
chore: synchronize workspaces
aeneasr Jan 8, 2025
5699c31
chore: synchronize workspaces
aeneasr Jan 8, 2025
dbba4de
chore: synchronize workspaces
aeneasr Jan 8, 2025
bc00c82
chore: synchronize workspaces
aeneasr Jan 8, 2025
986587a
chore: synchronize workspaces
aeneasr Jan 8, 2025
2b7d1b3
chore: synchronize workspaces
aeneasr Jan 9, 2025
b30d47c
chore: synchronize workspaces
aeneasr Jan 9, 2025
e7940b1
chore: synchronize workspaces
aeneasr Jan 9, 2025
f566286
chore: synchronize workspaces
aeneasr Jan 9, 2025
fd4f016
chore: synchronize workspaces
aeneasr Jan 9, 2025
6022839
chore: synchronize workspaces
aeneasr Jan 9, 2025
505479a
chore: synchronize workspaces
aeneasr Jan 9, 2025
59e1d2e
chore: synchronize workspaces
aeneasr Jan 10, 2025
70d7afd
chore: synchronize workspaces
aeneasr Jan 10, 2025
adfe08f
chore: synchronize workspaces
aeneasr Jan 10, 2025
80b7a70
chore: synchronize workspaces
aeneasr Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/argos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,3 @@ jobs:

- name: Build the website
run: npm run build

- name: Take screenshots with Playwright
run: npm exec playwright test -- --config playwright-argos.config.ts

- name: Upload screenshots to Argos
run: npm exec argos upload ./screenshots
23 changes: 14 additions & 9 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,35 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "23"
cache: "npm"
- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: "^1.17.6"
go-version: "^1.23"
- uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
php-version: "8.4"
tools: composer
- uses: subosito/[email protected]
with:
flutter-version: "3.10.6"
channel: "stable"
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- run: npm install
python-version: "3.13"
- run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Playwright tests
run: make test
env:
ORY_CI_RATE_LIMIT_HEADER: ${{ secrets.ORY_CI_RATE_LIMIT_HEADER }}
ORY_CI_RATE_LIMIT_HEADER_VALUE:
${{ secrets.ORY_CI_RATE_LIMIT_HEADER_VALUE }}
ORY_PROJECT_API_KEY=: ${{ secrets.ORY_PROJECT_API_KEY }}
- uses: actions/upload-artifact@v4
if: always()
timeout-minutes: 15
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ test: install build-examples .bin/ory
.bin/licenses: Makefile
curl https://raw.githubusercontent.com/ory/ci/master/licenses/install | sh

.bin/ory: Makefile
curl https://raw.githubusercontent.com/ory/meta/master/install.sh | bash -s -- -b .bin ory v0.2.1
touch .bin/ory
.bin/ory: Makefile go.sum
go build -o .bin/ory github.com/ory/cli

node_modules: package.json package-lock.json
npm ci
Expand Down
2 changes: 1 addition & 1 deletion code-examples/auth-api/expressjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

const express = require("express")
const cors = require("cors")
const { FrontendApi, Configuration } = require("@ory/client")
const { FrontendApi, Configuration } = require("@ory/client-fetch")

const app = express()

Expand Down
143 changes: 9 additions & 134 deletions code-examples/auth-api/expressjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion code-examples/auth-api/expressjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "node index.js"
},
"dependencies": {
"@ory/client": "~1.6.1",
"@ory/client-fetch": "~1.15.17",
"cors": "^2.8.5",
"express": "^4.21.1"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

const { FrontendApi, Configuration } = require("@ory/client")
const { FrontendApi, Configuration } = require("@ory/client-fetch")

const ory = new FrontendApi(
new Configuration({
Expand Down
Loading
Loading