Feat/better auth #17
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Playwright Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
PNPM_VERSION: 10.14.0 | |
jobs: | |
test: | |
name: Playwright Tests | |
timeout-minutes: 25 | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 25 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
- name: 🔥 Setup corepack | |
run: | | |
corepack enable | |
corepack prepare pnpm@${{ env.PNPM_VERSION }} --activate | |
- name: Set environment variables | |
env: | |
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }} | |
RESEND_DOMAIN: ${{ secrets.RESEND_DOMAIN }} | |
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }} | |
STRIPE_PUBLISHABLE_KEY: ${{ secrets.STRIPE_PUBLISHABLE_KEY }} | |
PERSONAL_GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | |
BETTER_AUTH_SECRET: ${{ secrets.BETTER_AUTH_SECRET }} | |
GITHUB_CLIENT_SECRET: ${{ secrets.AUTH_GITHUB_CLIENT_SECRET }} | |
DATABASE_URL: ${{ secrets.AUTH_DATABASE_URL }} | |
run: | | |
cp .env.development .env | |
chmod +x ./scripts/setEnv.sh && ./scripts/setEnv.sh | |
- name: 📦 Install Dependencies | |
run: | | |
pnpm install --no-frozen-lockfile | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install --with-deps | |
- name: 💣 test:e2e | |
run: pnpm test:e2e | |
# - name: Run Playwright tests | |
# run: pnpm exec playwright test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |