mirror of
https://github.com/VladSez/easy-invoice-pdf
synced 2026-04-21 21:47:52 +00:00
* feat: add debug local storage UI and update README; include new template parameter handling in invoice form * feat: add URL compression logic when generating link to invoice to reduce url length + add unit tests + improved existing e2e tests * ci: remove type check step from unit tests workflow to streamline CI process * test: update e2e tests for Stripe invoice sharing logic and template; increase timeout for visibility checks * test: refactor e2e tests for invoice generation and sharing; update element selectors and enhance URL disallow rules in robots.txt * chore: enhance README with detailed features and update about page references; add GitHub star CTA component * chore: update configuration files for Prettier, run prettify across the project * chore: run dedupe * test: add e2e tests for Open Graph meta tags in invoice templates; verify correct rendering for default and Stripe templates * chore: remove @stagewise/toolbar-next package and related development toolbar component from the project
52 lines
1.7 KiB
YAML
52 lines
1.7 KiB
YAML
name: 🧪 Vitest Unit Tests
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
unit-tests:
|
|
name: Run unit tests
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# we use pinned versions because there are safer to use: https://x.com/paulmillr/status/1900948425325031448
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
name: 🛎️ Checkout repository
|
|
|
|
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
|
|
name: 📦 Setup pnpm
|
|
|
|
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # 4.3.0
|
|
name: 📚 Setup Node.js
|
|
with:
|
|
node-version: lts/*
|
|
cache: "pnpm"
|
|
|
|
- name: 🚚 Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: 🧪 Run Vitest tests
|
|
id: vitest
|
|
run: pnpm vitest run --reporter=verbose
|
|
|
|
- name: 📧 Send email on failure
|
|
if: failure()
|
|
uses: dawidd6/action-send-mail@611879133a9569642c41be66f4a323286e9b8a3b # v4
|
|
with:
|
|
server_address: smtp.gmail.com
|
|
server_port: 587
|
|
from: GitHub Actions
|
|
to: ${{ secrets.EMAIL_USERNAME }}
|
|
username: ${{ secrets.EMAIL_USERNAME }}
|
|
password: ${{ secrets.EMAIL_PASSWORD }}
|
|
subject: ❌ Unit Tests Failed for ${{ github.repository }}
|
|
body: |
|
|
Unit tests for ${{ github.repository }} have failed.
|
|
|
|
Branch: ${{ github.ref_name }}
|
|
Commit: ${{ github.sha }}
|
|
|
|
For more details, please check:
|
|
- GitHub Actions run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|