Skip to content

Commit

Permalink
chore: added unit testing in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lungarella-raffaele committed Jan 20, 2025
1 parent 7bba365 commit b14127b
Showing 1 changed file with 15 additions and 30 deletions.
45 changes: 15 additions & 30 deletions .github/workflows/playwright.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,11 @@
# name: Playwright Tests
# on:
# push:
# branches: [main]
# pull_request:
# branches: [main]
# jobs:
# test_e2e:
# timeout-minutes: 60
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: lts/*
# - name: Install dependencies
# run: npm install -g pnpm && pnpm install
# - name: Install Playwright Browsers
# run: pnpm exec playwright install --with-deps
# - name: Run Playwright tests
# run: pnpm exec playwright test
# - uses: actions/upload-artifact@v4
# if: ${{ !cancelled() }}
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 30

name: Playwright Tests
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test_all:
e2e_tests:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
Expand All @@ -55,3 +27,16 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30

unit_tests:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm install -g pnpm && pnpm install
- name: Run Vitest tests
run: pnpm vitest run

0 comments on commit b14127b

Please sign in to comment.