Skip to content

Commit 49ada31

Browse files
authored
test: add vitest and rtl tests for client (#7)
1 parent 93c602e commit 49ada31

29 files changed

+1435
-104
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CD
1+
name: Release
22

33
on:
44
push:

.github/workflows/tests.yml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,50 @@ on:
77
- main
88

99
jobs:
10-
pytest:
11-
name: Pytest
10+
app:
11+
name: "App"
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- name: Checkout code
15+
- name: "Checkout code"
1616
uses: actions/checkout@v5
1717

18-
- name: Set up Python
18+
- name: "Set up Python"
1919
uses: actions/setup-python@v6
2020
with:
2121
python-version-file: ".python-version"
2222

23-
- name: Install uv and set the Python version
23+
- name: "Install uv and set the Python version"
2424
uses: astral-sh/setup-uv@v6
2525
with:
2626
enable-cache: true
2727

28-
- name: Install Dependencies
28+
- name: "Install Dependencies"
2929
run: uv sync --locked --dev
3030

31-
- name: Run Pytest and Coverage
31+
- name: "Run Pytest and Coverage"
3232
run: uv run pytest
33+
34+
client:
35+
name: "Client"
36+
runs-on: ubuntu-latest
37+
defaults:
38+
run:
39+
working-directory: "./client"
40+
41+
steps:
42+
- name: "Checkout code"
43+
uses: actions/checkout@v5
44+
45+
- name: "Setup Node.js"
46+
uses: actions/setup-node@v6
47+
with:
48+
node-version: 20.x
49+
cache: "npm"
50+
cache-dependency-path: "client/package-lock.json"
51+
52+
- name: "Install Dependencies"
53+
run: npm ci
54+
55+
- name: "Run Vitest & RTL"
56+
run: npm run test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# <img src="/docs/public/favicon.svg" width="25" /> avatars
1+
# <img src="./client/public/favicon.svg" width="25" /> avatars
22

33
> API for generating customizable SVG avatars with consistent seeds.
44
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)