Skip to content

feat: add CRUD organizations support #640

feat: add CRUD organizations support

feat: add CRUD organizations support #640

Workflow file for this run

name: E2E Tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- master
jobs:
test-tunnel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "^1.19"
- uses: actions/setup-node@v2
with:
node-version: "16"
- run: |
go build -o ory .
./ory tunnel http://localhost:4001 --project admiring-tu-swczqlujc0 --quiet &
env:
ORY_API_KEY: ${{ secrets.ORY_PROJECT_API_KEY }}
- name: Install dependencies and run server
working-directory: cmd/cloudx/e2e
run: |
npm ci
- name: Run tests
working-directory: cmd/cloudx/e2e
run: |
npm run server &
docker run \
-e HYDRA_ADMIN_URL=https://admiring-tu-swczqlujc0.projects.oryapis.com \
-e ORY_API_KEY="${{ secrets.ORY_PROJECT_API_KEY }}" \
-p 4445:3000 -d \
--name hydra-ui \
docker.io/oryd/hydra-login-consent-node:v2.0.0-alpha.0.pre.2
npm run test
env:
CYPRESS_RECORD_KEY: e8bf86fe-6605-4112-af1d-c3a2f052d4f8
CYPRESS_IS_TUNNEL: 1
- if: ${{ failure() }}
run: |
docker ps -a
docker logs hydra-ui
curl -v http://localhost:4445
test-proxy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "^1.19"
- uses: actions/setup-node@v2
with:
node-version: "16"
- run: |
go build -o ory .
./ory proxy https://ory-network-httpbin-ijakee5waq-ez.a.run.app/anything --rewrite-host --project admiring-tu-swczqlujc0 --quiet &
env:
ORY_API_KEY: ${{ secrets.ORY_PROJECT_API_KEY }}
- name: Install Node
working-directory: cmd/cloudx/e2e
run: |
npm ci
- working-directory: cmd/cloudx/e2e
run: |
docker run \
-e HYDRA_ADMIN_URL=https://admiring-tu-swczqlujc0.projects.oryapis.com \
-e ORY_API_KEY="${{ secrets.ORY_PROJECT_API_KEY }}" \
-p 4445:3000 -d \
--name hydra-ui \
docker.io/oryd/hydra-login-consent-node:v2.0.0-alpha.0.pre.2
npm run test
env:
CYPRESS_RECORD_KEY: e8bf86fe-6605-4112-af1d-c3a2f052d4f8
- if: ${{ failure() }}
run: |
docker ps -a
docker logs hydra-ui
curl -v http://localhost:4445