Skip to content

Commit

Permalink
chore: update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Mar 25, 2024
1 parent 914b310 commit a161245
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/test-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,31 @@ on:
- main

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci && npx playwright install --with-deps
- name: Start the development server
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
NEXT_PUBLIC_APP_URL: http://localhost:8080
API_URL: http://localhost:3333
LUNARY_PUBLIC_KEY: 259d2d94-9446-478a-ae04-484de705b522
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# run-tests:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install dependencies
# run: npm ci && npx playwright install --with-deps
# - name: Start the development server
# env:
# DATABASE_URL: ${{ secrets.DATABASE_URL }}
# JWT_SECRET: ${{ secrets.JWT_SECRET }}
# NEXT_PUBLIC_APP_URL: http://localhost:8080
# API_URL: http://localhost:3333
# LUNARY_PUBLIC_KEY: 259d2d94-9446-478a-ae04-484de705b522
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

run: npm run dev:test & npx wait-on http://localhost:3333/v1/health
# run: npm run dev:test & npx wait-on http://localhost:3333/v1/health

- name: Run tests
run: npx playwright test
env:
BASE_URL: http://localhost:8080
DATABASE_URL: ${{ secrets.DATABASE_URL }}
# - name: Run tests
# run: npx playwright test
# env:
# BASE_URL: http://localhost:8080
# DATABASE_URL: ${{ secrets.DATABASE_URL }}

build-and-push:
needs: run-tests
# needs: run-tests
runs-on: ubuntu-latest
steps:
- name: Check out the private Ops repo
Expand Down

0 comments on commit a161245

Please sign in to comment.