Skip to content

Commit

Permalink
ci: fix playwright tests and remove argos (#1992)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Jan 11, 2025
1 parent c13701b commit 0d7e180
Show file tree
Hide file tree
Showing 38 changed files with 5,096 additions and 7,771 deletions.
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
2 changes: 1 addition & 1 deletion code-examples/identity/sign-in/check-session/js/client.js
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

0 comments on commit 0d7e180

Please sign in to comment.