Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Lint
name: Lint (e2e-chatbot-app-next)
on:
push:
paths:
- 'e2e-chatbot-app-next/**'
pull_request:
paths:
- 'e2e-chatbot-app-next/**'

jobs:
build:
Expand All @@ -15,7 +20,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: e2e-chatbot-app-next/package-lock.json
- name: Install dependencies
working-directory: e2e-chatbot-app-next
run: npm ci
- name: Run lint
working-directory: e2e-chatbot-app-next
run: npm run lint
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Playwright Tests
name: Playwright Tests (e2e-chatbot-app-next)
on:
push:
branches: [main, master]
paths:
- 'e2e-chatbot-app-next/**'
pull_request:
branches: [main, master]
paths:
- 'e2e-chatbot-app-next/**'

jobs:
test:
Expand All @@ -25,16 +29,6 @@ jobs:
--health-retries 5
env:
POSTGRES_URL: postgresql://postgres:postgres@localhost:5432/chatbot?sslmode=disable
PGHOST: localhost
PGPORT: 5432
PGDATABASE: chatbot
PGUSER: postgres
PGPASSWORD: postgres
PGSSLMODE: disable
DATABRICKS_SERVING_ENDPOINT: "mock-value"
DATABRICKS_CLIENT_ID: "mock-value"
DATABRICKS_CLIENT_SECRET: "mock-value"
DATABRICKS_HOST: "mock-value"

steps:
- uses: actions/checkout@v4
Expand All @@ -45,32 +39,36 @@ jobs:
with:
node-version: lts/*
cache: npm
cache-dependency-path: e2e-chatbot-app-next/package-lock.json

- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-npm-store-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-npm-store-${{ hashFiles('e2e-chatbot-app-next/**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-store-

- name: Install dependencies
working-directory: e2e-chatbot-app-next
run: npm ci

- name: Cache Playwright browsers
uses: actions/cache@v3
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-playwright-${{ hashFiles('e2e-chatbot-app-next/**/package-lock.json') }}

- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps chromium

- name: Run database migrations
working-directory: e2e-chatbot-app-next
run: npm run db:migrate

- name: Run Playwright tests
working-directory: e2e-chatbot-app-next
env:
PLAYWRIGHT: True
run: npm run test
Expand All @@ -79,5 +77,5 @@ jobs:
if: always() && !cancelled()
with:
name: playwright-report
path: playwright-report/
path: e2e-chatbot-app-next/playwright-report/
retention-days: 7