diff --git a/.github/workflows/e2e-embed.yml b/.github/workflows/e2e-embed.yml index cdf95e5df5..159086becc 100644 --- a/.github/workflows/e2e-embed.yml +++ b/.github/workflows/e2e-embed.yml @@ -6,7 +6,6 @@ jobs: e2e-embed: timeout-minutes: 20 runs-on: ubuntu-latest - env: DATABASE_URL: postgresql://postgres:@localhost:5432/calendso NEXT_PUBLIC_WEBAPP_URL: http://localhost:3000 @@ -59,7 +58,7 @@ jobs: - uses: ./.github/actions/yarn-playwright-install - uses: ./.github/actions/cache-db with: - DATABASE_URL: postgresql://postgres:@localhost:5432/calendso + DATABASE_URL: ${{ env.DATABASE_URL }} - name: Run Tests run: yarn turbo run embed-tests-update-snapshots:ci --scope=@calcom/embed-react --concurrency=1 - name: Upload embed-core results diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index a15e584f0e..91319a544f 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -14,7 +14,7 @@ jobs: GOOGLE_API_CREDENTIALS: ${{ secrets.CI_GOOGLE_API_CREDENTIALS }} GOOGLE_LOGIN_ENABLED: true # CRON_API_KEY: xxx - CALENDSO_ENCRYPTION_KEY: 79GVSsl2tJR6x8IZkL0yfWs1XVxDu965 + CALENDSO_ENCRYPTION_KEY: ${{ secrets.CI_CALENDSO_ENCRYPTION_KEY }} DAILY_API_KEY: ${{ secrets.CI_DAILY_API_KEY }} NEXT_PUBLIC_STRIPE_PUBLIC_KEY: ${{ secrets.CI_NEXT_PUBLIC_STRIPE_PUBLIC_KEY }} NEXT_PUBLIC_STRIPE_FREE_PLAN_PRICE: ${{ secrets.CI_NEXT_PUBLIC_STRIPE_FREE_PLAN_PRICE }} @@ -62,7 +62,7 @@ jobs: - uses: ./.github/actions/yarn-playwright-install - uses: ./.github/actions/cache-db with: - DATABASE_URL: postgresql://postgres:@localhost:5432/calendso + DATABASE_URL: ${{ env.DATABASE_URL }} - run: yarn test-e2e - name: Upload test results if: ${{ always() }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 90920439df..a1e2c0921e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -36,44 +36,53 @@ jobs: setup: name: Yarn install & cache uses: ./.github/workflows/yarn-install.yml + secrets: inherit type-check: name: Type check needs: setup uses: ./.github/workflows/check-types.yml + secrets: inherit test: name: Unit tests needs: setup uses: ./.github/workflows/test.yml + secrets: inherit lint: name: Linters needs: setup uses: ./.github/workflows/lint.yml + secrets: inherit build: name: Production build needs: setup uses: ./.github/workflows/production-build.yml + secrets: inherit e2e: name: E2E tests needs: [lint, build] uses: ./.github/workflows/e2e.yml + secrets: inherit e2e-app-store: name: E2E App Store tests if: ${{ needs.changes.outputs.app-store == 'true' }} needs: [changes, lint, build] uses: ./.github/workflows/e2e-app-store.yml + secrets: inherit e2e-embed: name: E2E embeds tests if: ${{ needs.changes.outputs.embed == 'true' }} needs: [changes, lint, build] uses: ./.github/workflows/e2e.yml + secrets: inherit analyze: needs: build uses: ./.github/workflows/nextjs-bundle-analysis.yml + secrets: inherit diff --git a/.github/workflows/production-build.yml b/.github/workflows/production-build.yml index 63074dd891..de22d21e7e 100644 --- a/.github/workflows/production-build.yml +++ b/.github/workflows/production-build.yml @@ -11,7 +11,7 @@ env: GOOGLE_API_CREDENTIALS: ${{ secrets.CI_GOOGLE_API_CREDENTIALS }} GOOGLE_LOGIN_ENABLED: true # CRON_API_KEY: xxx - CALENDSO_ENCRYPTION_KEY: 79GVSsl2tJR6x8IZkL0yfWs1XVxDu965 + CALENDSO_ENCRYPTION_KEY: ${{ secrets.CI_CALENDSO_ENCRYPTION_KEY }} DAILY_API_KEY: ${{ secrets.CI_DAILY_API_KEY }} NEXT_PUBLIC_STRIPE_PUBLIC_KEY: ${{ secrets.CI_NEXT_PUBLIC_STRIPE_PUBLIC_KEY }} NEXT_PUBLIC_STRIPE_FREE_PLAN_PRICE: ${{ secrets.CI_NEXT_PUBLIC_STRIPE_FREE_PLAN_PRICE }}