Skip to content

Commit 5ed4f6e

Browse files
committed
add ch config files
1 parent e82813e commit 5ed4f6e

20 files changed

Lines changed: 418 additions & 53 deletions

.eslintrc.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"packages/@dcl/sdk/tsconfig.json",
1111
"packages/@dcl/playground-assets/tsconfig.json",
1212
"packages/@dcl/react-ecs/tsconfig.json",
13+
"packages/@dcl/creator-hub/packages/main/tsconfig.json",
14+
"packages/@dcl/creator-hub/packages/preload/tsconfig.json",
15+
"packages/@dcl/creator-hub/packages/renderer/tsconfig.json",
16+
"packages/@dcl/creator-hub/packages/shared/tsconfig.json",
1317
"scripts/tsconfig.json",
1418
"test/tsconfig.json",
1519
"test/ecs/snippets/tsconfig.json"
@@ -42,4 +46,4 @@
4246
}
4347
}
4448
]
45-
}
49+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Drop pre-release
1+
name: CH Drop pre-release
22
on:
33
workflow_call:
44
inputs:
@@ -29,4 +29,4 @@ jobs:
2929
pre-release-keep-count: -1
3030
pre-release-drop-tag: true
3131
env:
32-
GITHUB_TOKEN: ${{ secrets.github_token }}
32+
GITHUB_TOKEN: ${{ secrets.github_token }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint
1+
name: CH Lint
22
on:
33
workflow_dispatch:
44
push:
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: CH Release
22
on:
33
workflow_call:
44
inputs:
@@ -197,7 +197,7 @@ jobs:
197197
echo "[mac-x64](${{ secrets.SDK_TEAM_S3_BASE_URL }}/creator-hub/branch/${{ github.head_ref }}/Decentraland%20Creator%20Hub-${{ steps.version.outputs.version }}-mac-x64.dmg)" >> $GITHUB_ENV
198198
echo "[mac-arm64](${{ secrets.SDK_TEAM_S3_BASE_URL }}/creator-hub/branch/${{ github.head_ref }}/Decentraland%20Creator%20Hub-${{ steps.version.outputs.version }}-mac-arm64.dmg)" >> $GITHUB_ENV
199199
echo "EOF" >> $GITHUB_ENV
200-
content=$(cat ./.github/workflows/ch/macos-instructions.md)
200+
content=$(cat ./.github/workflows/ch-macos-instructions.md)
201201
echo "macos-instructions<<EOF" >> $GITHUB_ENV
202202
echo "$content" >> $GITHUB_ENV
203203
echo "EOF" >> $GITHUB_ENV
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: CH Tests
22
on: [ workflow_call ]
33

44
concurrency:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Typechecking
1+
name: CH Typechecking
22
on: [ workflow_call ]
33

44
concurrency:
Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: CH
22
# This workflow is the entry point for all CI processes.
33
# It is from here that all other workflows are launched.
44
on:
@@ -10,49 +10,51 @@ on:
1010
paths:
1111
- 'packages/@dcl/inspector/**'
1212
- 'packages/@dcl/creator-hub/**'
13-
paths-ignore:
14-
- '.github/**'
15-
- '!.github/workflows/ch/ci.yml'
16-
- '!.github/workflows/ch/typechecking.yml'
17-
- '!.github/workflows/ch/tests.yml'
18-
- '!.github/workflows/ch/release.yml'
19-
- 'packages/@dcl/creator-hub/**.md'
20-
- packages/@dcl/creator-hub/.editorconfig
21-
- packages/@dcl/creator-hub/.gitignore
22-
- packages/@dcl/creator-hub/.idea/**
23-
- packages/@dcl/creator-hub/.vscode/**
13+
- '!.github/workflows/ch.yml'
14+
- '!.github/workflows/ch-typechecking.yml'
15+
- '!.github/workflows/ch-tests.yml'
16+
- '!.github/workflows/ch-drop.yml'
17+
- '!.github/workflows/ch-release.yml'
18+
- '!.github/workflows/ch-lint.yml'
19+
- '!packages/@dcl/creator-hub/**.md'
20+
- '!packages/@dcl/creator-hub/.editorconfig'
21+
- '!packages/@dcl/creator-hub/.gitignore'
22+
- '!packages/@dcl/creator-hub/.idea/**'
23+
- '!packages/@dcl/creator-hub/.vscode/**'
2424
pull_request:
2525
paths:
2626
- 'packages/@dcl/inspector/**'
2727
- 'packages/@dcl/creator-hub/**'
28-
paths-ignore:
29-
- '.github/**'
30-
- '!.github/workflows/ch/ci.yml'
31-
- '!.github/workflows/ch/typechecking.yml'
32-
- '!.github/workflows/ch/tests.yml'
33-
- '!.github/workflows/ch/release.yml'
34-
- 'packages/@dcl/creator-hub/**.md'
35-
- packages/@dcl/creator-hub/.editorconfig
36-
- packages/@dcl/creator-hub/.gitignore
37-
- packages/@dcl/creator-hub/.idea/**
38-
- packages/@dcl/creator-hub/.vscode/**
28+
- '!.github/workflows/ch.yml'
29+
- '!.github/workflows/ch-typechecking.yml'
30+
- '!.github/workflows/ch-tests.yml'
31+
- '!.github/workflows/ch-drop.yml'
32+
- '!.github/workflows/ch-release.yml'
33+
- '!.github/workflows/ch-lint.yml'
34+
- '!packages/@dcl/creator-hub/**.md'
35+
- '!packages/@dcl/creator-hub/.editorconfig'
36+
- '!packages/@dcl/creator-hub/.gitignore'
37+
- '!packages/@dcl/creator-hub/.idea/**'
38+
- '!packages/@dcl/creator-hub/.vscode/**'
3939

4040
concurrency:
4141
group: ci-${{ github.ref }}
4242
cancel-in-progress: true
4343

4444
jobs:
45+
lint:
46+
uses: ./.github/workflows/ch-lint.yml
4547
typechecking:
46-
uses: ./.github/workflows/ch/typechecking.yml
48+
uses: ./.github/workflows/ch-typechecking.yml
4749
tests:
48-
uses: ./.github/workflows/ch/tests.yml
50+
uses: ./.github/workflows/ch-tests.yml
4951
drop_pre_release:
5052
permissions:
5153
contents: write
5254
with:
5355
dry-run: ${{ github.event_name != 'push' || github.ref_name != 'main' }}
5456
needs: [ typechecking, tests ]
55-
uses: ./.github/workflows/ch/drop.yml
57+
uses: ./.github/workflows/ch-drop.yml
5658
pre_release:
5759
permissions:
5860
contents: write # Allows this job to create releases
@@ -61,7 +63,7 @@ jobs:
6163
with:
6264
dry-run: ${{ github.event_name != 'push' || github.ref_name != 'main' }}
6365
needs: [ drop_pre_release ]
64-
uses: ./.github/workflows/ch/release.yml
66+
uses: ./.github/workflows/ch-release.yml
6567
secrets:
6668
# Secrets required to sign and notarize the app in MacOS
6769
MACOS_CSC_LINK: ${{ secrets.MACOS_CSC_LINK }}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ packages/**/*.js
88
!packages/@dcl/inspector/hot-reload.js
99
!packages/@dcl/inspector/test/jest-transformer.js
1010
!packages/@dcl/inspector/test/jest.config.js
11+
!packages/@dcl/creator-hub/**/vite.config.js
12+
!packages/@dcl/creator-hub/**/vitest.config.js
13+
!packages/@dcl/creator-hub/scripts/*
1114
packages/@dcl/sdk/package-lock.json
1215
packages/@dcl/sdk/**/*.js
1316
packages/@dcl/sdk/**/*.d.ts
@@ -35,4 +38,4 @@ test/snapshots/bin
3538

3639
**/.decentraland/ts-entry-points
3740

38-
test/build-ecs/fixtures/ecs7-scene/aCaseSensitiveReadme.md
41+
test/build-ecs/fixtures/ecs7-scene/aCaseSensitiveReadme.md

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ test-inspector:
8080
test-inspector-e2e:
8181
cd ./packages/@dcl/inspector/; IS_E2E=true ./../../../node_modules/.bin/jest --detectOpenHandles --colors --config ./jest.config.js
8282

83+
test-cli:
84+
@rm -rf tmp
85+
@mkdir -p tmp/scene
86+
cd tmp/scene; $(PWD)/packages/@dcl/sdk-commands/dist/index.js init
87+
8388
test-creator-hub:
8489
cd $(CH_PATH); npm run test
8590

0 commit comments

Comments
 (0)