diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index 8989c51..a7d881e 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -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