Compare commits

...

8 commits

Author SHA1 Message Date
1de0cf7d59
ci: fixed oidc-mock image
All checks were successful
Visitenbuch CI / test (push) Successful in 6s
Visitenbuch CI / release (push) Has been skipped
2024-05-14 03:56:04 +02:00
7ea87d4240
ci: use test oidc image
Some checks failed
Visitenbuch CI / release (push) Has been cancelled
Visitenbuch CI / test (push) Has been cancelled
2024-05-14 03:48:36 +02:00
e7de2f2588
ci: only oidc-mock-server
Some checks failed
Visitenbuch CI / release (push) Has been cancelled
Visitenbuch CI / test (push) Has been cancelled
2024-05-14 03:47:09 +02:00
b0b2cb5bb9
ci: run container itself
Some checks failed
Visitenbuch CI / oidcmock (push) Has been cancelled
Visitenbuch CI / test (push) Has been cancelled
Visitenbuch CI / release (push) Has been cancelled
2024-05-14 03:35:20 +02:00
e63888a103
ci: test
Some checks failed
Visitenbuch CI / release (push) Blocked by required conditions
Visitenbuch CI / test (push) Has been cancelled
2024-05-14 03:21:24 +02:00
a17ca9bbba
ci: test
Some checks failed
Visitenbuch CI / test (push) Failing after 14s
Visitenbuch CI / release (push) Has been skipped
2024-05-14 03:20:18 +02:00
04523b17e9
ci test 2024-05-14 02:42:43 +02:00
7dab4abbd3
ci: test if oidc works
Some checks failed
Visitenbuch CI / test (push) Failing after 7s
Visitenbuch CI / release (push) Has been skipped
2024-05-14 02:40:23 +02:00

View file

@ -1,10 +1,6 @@
name: Visitenbuch CI name: Visitenbuch CI
on: on:
push: push:
branches:
- "main"
tags:
- "v*"
pull_request: pull_request:
jobs: jobs:
@ -24,6 +20,7 @@ jobs:
CLIENT_REDIRECT_URIS: http://localhost:4173/auth/callback/keycloak CLIENT_REDIRECT_URIS: http://localhost:4173/auth/callback/keycloak
CLIENT_LOGOUT_REDIRECT_URIS: http://localhost:4173/login?noAuto=1 CLIENT_LOGOUT_REDIRECT_URIS: http://localhost:4173/login?noAuto=1
ISSUER_HOST: oidc:3000 ISSUER_HOST: oidc:3000
env: env:
DATABASE_URL: "postgresql://postgres:1234@postgres:5432/test?schema=public" DATABASE_URL: "postgresql://postgres:1234@postgres:5432/test?schema=public"
TEST_DATABASE_URL: "postgresql://postgres:1234@postgres:5432/test?schema=public" TEST_DATABASE_URL: "postgresql://postgres:1234@postgres:5432/test?schema=public"
@ -32,25 +29,28 @@ jobs:
steps: steps:
- name: 👁️ Checkout repository - name: 👁️ Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: 📦 pnpm install - name: Test
run: | run: |
pnpm install curl http://oidc:3000/.well-known/openid-configuration || sleep 1000
cp .env.test .env # - name: 📦 pnpm install
- name: 🧐 lint # run: |
run: | # pnpm install
npm run check # cp .env.test .env
npm run lint # - name: 🧐 lint
- name: 🧪 Unit test # run: |
run: npm run test:unit # npm run check
- name: 🧪 Integration test # npm run lint
run: | # - name: 🧪 Unit test
npx prisma migrate reset --force # run: npm run test:unit
npm run test:integration # - name: 🧪 Integration test
- name: 👨‍🔬 E2E test # run: |
run: | # npx prisma migrate reset --force
npx playwright install --with-deps # npm run test:integration
npm run build # - name: 👨‍🔬 E2E test
npm run test:e2e # run: |
# npx playwright install --with-deps
# npm run build
# npm run test:e2e
release: release:
runs-on: cimaster-latest runs-on: cimaster-latest