Skip to content

Commit

Permalink
ci: run tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlatz committed Dec 16, 2024
1 parent 8da3f7e commit 5b65d05
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/playwright.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
name: Playwright Tests
name: Tests
on:
push:
branches: [ main, master ]
branches: [ main ]
pull_request:
branches: [ main, master ]
jobs:
test:
tests:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: 18

- name: Install dependencies
run: npm install -g yarn && yarn
run: yarn

- name: Install Playwright Browsers
run: yarn playwright install --with-deps

- name: Build
run: yarn build

- name: Run Playwright tests
run: yarn playwright test
env:
PORT: 3001
DB: ${{ secrets.ASAW_DATABASE_URL }}

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
Expand Down

0 comments on commit 5b65d05

Please sign in to comment.