Skip to content

Commit 54eeee5

Browse files
authored
v3: Technical refactor (#302)
1 parent f9cf2c6 commit 54eeee5

File tree

125 files changed

+5952
-10105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+5952
-10105
lines changed

.babelrc

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

.eslintrc.cjs

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

.eslintrc.esm.mjs

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Setup Node.js and pnpm"
2+
description: "Setup Node.js and pnpm with caching"
3+
inputs:
4+
node-version:
5+
description: "Node.js version to use"
6+
required: false
7+
default: "22.18.0"
8+
pnpm-version:
9+
description: "pnpm version to use"
10+
required: false
11+
default: "10.14.0"
12+
13+
runs:
14+
using: "composite"
15+
steps:
16+
- name: Setup PNPM
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: ${{ inputs.pnpm-version }}
20+
run_install: false
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ inputs.node-version }}
26+
cache: "pnpm"
27+
28+
- name: Install dependencies
29+
shell: bash
30+
run: pnpm install --frozen-lockfile

.github/workflows/build.yml

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

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
env:
10+
NODE_OPTIONS: --max_old_space_size=4096
11+
12+
jobs:
13+
build-and-test:
14+
timeout-minutes: 30
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Setup Node.js and pnpm
20+
uses: ./.github/actions/setup-node-pnpm
21+
22+
- name: Build application
23+
run: pnpm run build
24+
25+
- name: Run checks
26+
run: pnpm check:ci
27+
28+
- name: Install Playwright Chromium
29+
run: pnpm run test:e2e:install
30+
31+
- name: Run Playwright tests
32+
run: pnpm run test:e2e
33+
34+
- name: Upload test results
35+
uses: actions/upload-artifact@v4
36+
if: always()
37+
with:
38+
name: playwright-report
39+
path: playwright-report/
40+
retention-days: 30

.github/workflows/e2e.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Setup Node.js and pnpm
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
node-version:
7+
description: "Node.js version to use"
8+
required: false
9+
type: string
10+
default: "22.18.0"
11+
pnpm-version:
12+
description: "pnpm version to use"
13+
required: false
14+
type: string
15+
default: "10.14.0"
16+
17+
jobs:
18+
setup:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Setup PNPM
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: ${{ inputs.pnpm-version }}
27+
run_install: false
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: ${{ inputs.node-version }}
33+
cache: "pnpm"
34+
35+
- name: Install dependencies
36+
run: pnpm install --frozen-lockfile

.gitignore

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
test-results
12
# Logs
23
logs
34
*.log
@@ -7,13 +8,21 @@ yarn-error.log*
78
pnpm-debug.log*
89
lerna-debug.log*
910

11+
# Package manager files
12+
package-lock.json
13+
yarn.lock
14+
.npm
15+
.yarn
16+
1017
node_modules
1118
dist
1219
dist-ssr
1320
*.local
1421

22+
# Prettier cache
23+
.cache
24+
1525
# Lint
16-
.eslintcache
1726

1827
# Editor directories and files
1928
.vscode/*
@@ -30,4 +39,9 @@ src/generatedContent
3039

3140
archive
3241

33-
vite.config.js.timestamp*
42+
vite.config.js.timestamp*
43+
44+
playwright-report
45+
test-results
46+
47+
public/_redirects

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)