Skip to content

Commit 0d7e180

Browse files
authored
ci: fix playwright tests and remove argos (#1992)
1 parent c13701b commit 0d7e180

File tree

38 files changed

+5096
-7771
lines changed

38 files changed

+5096
-7771
lines changed

.github/workflows/argos.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,3 @@ jobs:
2727

2828
- name: Build the website
2929
run: npm run build
30-
31-
- name: Take screenshots with Playwright
32-
run: npm exec playwright test -- --config playwright-argos.config.ts
33-
34-
- name: Upload screenshots to Argos
35-
run: npm exec argos upload ./screenshots

.github/workflows/playwright.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,35 @@ jobs:
1818
timeout-minutes: 60
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v3
22-
- uses: actions/setup-node@v3
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-node@v4
2323
with:
24-
node-version: "16"
24+
node-version: "23"
2525
cache: "npm"
26-
- uses: actions/setup-go@v2
26+
- uses: actions/setup-go@v5
2727
with:
28-
go-version: "^1.17.6"
28+
go-version: "^1.23"
2929
- uses: shivammathur/setup-php@v2
3030
with:
31-
php-version: "8.1"
31+
php-version: "8.4"
3232
tools: composer
3333
- uses: subosito/[email protected]
3434
with:
3535
flutter-version: "3.10.6"
3636
channel: "stable"
37-
- uses: actions/setup-python@v4
37+
- uses: actions/setup-python@v5
3838
with:
39-
python-version: "3.10"
40-
- run: npm install
39+
python-version: "3.13"
40+
- run: npm ci
4141
- name: Install Playwright
4242
run: npx playwright install --with-deps
4343
- name: Run Playwright tests
4444
run: make test
45+
env:
46+
ORY_CI_RATE_LIMIT_HEADER: ${{ secrets.ORY_CI_RATE_LIMIT_HEADER }}
47+
ORY_CI_RATE_LIMIT_HEADER_VALUE:
48+
${{ secrets.ORY_CI_RATE_LIMIT_HEADER_VALUE }}
49+
ORY_PROJECT_API_KEY: ${{ secrets.ORY_PROJECT_API_KEY }}
4550
- uses: actions/upload-artifact@v4
4651
if: always()
4752
timeout-minutes: 15

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ test: install build-examples .bin/ory
4343
.bin/licenses: Makefile
4444
curl https://raw.githubusercontent.com/ory/ci/master/licenses/install | sh
4545

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

5049
node_modules: package.json package-lock.json
5150
npm ci

code-examples/auth-api/expressjs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const express = require("express")
55
const cors = require("cors")
6-
const { FrontendApi, Configuration } = require("@ory/client")
6+
const { FrontendApi, Configuration } = require("@ory/client-fetch")
77

88
const app = express()
99

code-examples/auth-api/expressjs/package-lock.json

Lines changed: 9 additions & 134 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

code-examples/auth-api/expressjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"start": "node index.js"
1010
},
1111
"dependencies": {
12-
"@ory/client": "~1.6.1",
12+
"@ory/client-fetch": "~1.15.17",
1313
"cors": "^2.8.5",
1414
"express": "^4.21.1"
1515
}

code-examples/identity/sign-in/check-session/js/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright © 2022 Ory Corp
22
// SPDX-License-Identifier: Apache-2.0
33

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

66
const ory = new FrontendApi(
77
new Configuration({

0 commit comments

Comments
 (0)