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