Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
1de0cf7d59 | |||
7ea87d4240 | |||
e7de2f2588 | |||
b0b2cb5bb9 | |||
e63888a103 | |||
a17ca9bbba | |||
04523b17e9 | |||
7dab4abbd3 |
1 changed files with 22 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue