Skip to content

Commit 114ab1d

Browse files
authored
Merge pull request #57 from YagoBorba/feature/multi-ui-workflow-architecture
Feature/multi UI workflow architecture
2 parents 3b8800e + 897ff01 commit 114ab1d

File tree

162 files changed

+14737
-6540
lines changed

Some content is hidden

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

162 files changed

+14737
-6540
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -7,75 +7,23 @@ on:
77
branches: [main, develop]
88

99
jobs:
10-
build:
11-
name: Build & Install
10+
# Job matrix para rodar múltiplos checks em paralelo
11+
quality-checks:
12+
name: ${{ matrix.check-name }}
1213
runs-on: ubuntu-latest
13-
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
16-
17-
- name: Setup Node.js
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version: "20"
21-
cache: "npm"
22-
23-
- name: Install dependencies
24-
run: npm ci
25-
26-
- name: Build project
27-
run: npm run build
28-
29-
test:
30-
name: Test
31-
needs: build
32-
runs-on: ubuntu-latest
33-
steps:
34-
- name: Checkout code
35-
uses: actions/checkout@v4
36-
37-
- name: Setup Node.js
38-
uses: actions/setup-node@v4
39-
with:
40-
node-version: "20"
41-
cache: "npm"
14+
strategy:
15+
fail-fast: false # Continua mesmo se um falhar
16+
matrix:
17+
include:
18+
- check-name: "Build"
19+
check-command: "build"
20+
- check-name: "Lint"
21+
check-command: "lint"
22+
- check-name: "Format Check"
23+
check-command: "format:check"
24+
- check-name: "Tests"
25+
check-command: "test"
4226

43-
- name: Install dependencies
44-
run: npm ci
45-
46-
- name: Build project
47-
run: npm run build
48-
49-
- name: Run tests
50-
run: npm test
51-
52-
lint:
53-
name: Lint
54-
needs: build
55-
runs-on: ubuntu-latest
56-
steps:
57-
- name: Checkout code
58-
uses: actions/checkout@v4
59-
60-
- name: Setup Node.js
61-
uses: actions/setup-node@v4
62-
with:
63-
node-version: "20"
64-
cache: "npm"
65-
66-
- name: Install dependencies
67-
run: npm ci
68-
69-
- name: Build project
70-
run: npm run build
71-
72-
- name: Run ESLint
73-
run: npm run lint
74-
75-
format_check:
76-
name: Format Check
77-
needs: build
78-
runs-on: ubuntu-latest
7927
steps:
8028
- name: Checkout code
8129
uses: actions/checkout@v4
@@ -89,8 +37,10 @@ jobs:
8937
- name: Install dependencies
9038
run: npm ci
9139

40+
# Build é necessário antes de outros checks
9241
- name: Build project
42+
if: matrix.check-command != 'build'
9343
run: npm run build
9444

95-
- name: Run Prettier Check
96-
run: npm run format:check
45+
- name: Run ${{ matrix.check-name }}
46+
run: npm run ${{ matrix.check-command }}

.gitignore

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
cat <<EOF > .gitignore
21
# Dependencies
32
node_modules/
43
.pnp
54
.pnp.js
65
.yarn/install-state.gz
76

8-
# Production
7+
# Production & Build Artifacts
98
build/
109
dist/
10+
out/
1111
.out/
1212

1313
# Misc
@@ -37,4 +37,11 @@ lerna-debug.log*
3737

3838
# TypeScript
3939
*.tsbuildinfo
40-
EOF
40+
41+
# Test Coverage
42+
coverage/
43+
*.lcov
44+
.nyc_output/
45+
46+
# VS Code Extension
47+
*.vsix

.prettierignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Build outputs
2+
**/dist
3+
**/out
4+
**/build
5+
6+
# Coverage
7+
**/coverage
8+
9+
# Dependencies
10+
**/node_modules
11+
12+
# Lock files
13+
package-lock.json
14+
pnpm-lock.yaml
15+
yarn.lock
16+
17+
# Generated files
18+
*.log
19+
*.tsbuildinfo
20+
21+
# VS Code extension specific
22+
*.vsix

0 commit comments

Comments
 (0)