Skip to content

Commit 71b3edc

Browse files
authored
Merge pull request #157 from Archetipo95/v3
2 parents d1ffedb + 8ca3f00 commit 71b3edc

29 files changed

Lines changed: 16691 additions & 177 deletions
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Lint and Typecheck
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
lint:
16+
name: Lint
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 5
19+
20+
permissions:
21+
contents: read
22+
23+
env:
24+
NODE_ENV: development
25+
26+
steps:
27+
- name: 📥 Check out the repository code
28+
uses: actions/checkout@v4
29+
30+
- name: 📦 Install pnpm
31+
uses: pnpm/action-setup@v4
32+
33+
- name: 🟢 Set up Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version-file: .nvmrc
37+
cache: pnpm
38+
39+
- name: ⬇️ Install dependencies
40+
run: pnpm install --frozen-lockfile
41+
42+
- name: 💅 Run lint
43+
run: pnpm run lint
44+
45+
typecheck:
46+
name: Typecheck
47+
runs-on: ubuntu-latest
48+
timeout-minutes: 5
49+
50+
permissions:
51+
contents: read
52+
53+
env:
54+
NODE_ENV: development
55+
56+
steps:
57+
- name: 📥 Check out the repository code
58+
uses: actions/checkout@v4
59+
60+
- name: 📦 Install pnpm
61+
uses: pnpm/action-setup@v4
62+
63+
- name: 🟢 Set up Node.js
64+
uses: actions/setup-node@v4
65+
with:
66+
node-version-file: .nvmrc
67+
cache: pnpm
68+
69+
- name: ⬇️ Install dependencies
70+
run: pnpm install --frozen-lockfile
71+
72+
- name: 🧪 Run typecheck
73+
run: pnpm run typecheck

.github/workflows/e2e-tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: E2E Tests
2+
3+
on:
4+
workflow_dispatch:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
test:
12+
name: Playwright Tests
13+
timeout-minutes: 10
14+
runs-on: ubuntu-latest
15+
container:
16+
image: mcr.microsoft.com/playwright:v1.57.0-jammy
17+
18+
permissions:
19+
contents: read
20+
21+
env:
22+
NODE_ENV: test
23+
HOME: /root
24+
25+
steps:
26+
- name: 📥 Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: 📦 Install pnpm
30+
uses: pnpm/action-setup@v4
31+
32+
- name: 🟢 Setup Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version-file: .nvmrc
36+
cache: pnpm
37+
38+
- name: ⬇️ Install dependencies
39+
run: pnpm install --frozen-lockfile
40+
41+
- name: 🎭 Run Playwright tests
42+
run: pnpm test:e2e

.github/workflows/lint.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/typecheck.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/unit-tests.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
name: Unit Tests
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 5
19+
20+
permissions:
21+
contents: read
22+
23+
env:
24+
NODE_ENV: test
25+
26+
steps:
27+
- name: 📥 Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: 📦 Install pnpm
31+
uses: pnpm/action-setup@v4
32+
33+
- name: 🟢 Setup Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version-file: .nvmrc
37+
cache: pnpm
38+
39+
- name: ⬇️ Install dependencies
40+
run: pnpm install --frozen-lockfile
41+
42+
- name: 🧪 Run Unit Tests
43+
run: pnpm test:unit

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22
1+
v24.11.1

0 commit comments

Comments
 (0)