From 23aeb27de89c1c972be84108df220e6db1ba5f15 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Fri, 8 Mar 2024 01:55:08 +0000 Subject: [PATCH] refactor: use new path for core --- .../workflows/actions/build-angular-server/action.yml | 2 +- .github/workflows/actions/build-angular/action.yml | 2 +- .../actions/build-core-stencil-prerelease/action.yml | 10 +++++----- .github/workflows/actions/build-core/action.yml | 10 +++++----- .../workflows/actions/build-react-router/action.yml | 2 +- .github/workflows/actions/build-react/action.yml | 2 +- .github/workflows/actions/build-vue-router/action.yml | 2 +- .github/workflows/actions/build-vue/action.yml | 2 +- .github/workflows/actions/test-angular-e2e/action.yml | 2 +- .../workflows/actions/test-core-clean-build/action.yml | 4 ++-- .github/workflows/actions/test-core-lint/action.yml | 6 +++--- .../workflows/actions/test-core-screenshot/action.yml | 8 ++++---- .github/workflows/actions/test-core-spec/action.yml | 8 ++++---- .github/workflows/actions/test-react-e2e/action.yml | 2 +- .../workflows/actions/test-react-router-e2e/action.yml | 2 +- .github/workflows/actions/test-vue-e2e/action.yml | 2 +- .../actions/update-reference-screenshots/action.yml | 2 +- 17 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/actions/build-angular-server/action.yml b/.github/workflows/actions/build-angular-server/action.yml index 3c289e35dc..48f67f55c7 100644 --- a/.github/workflows/actions/build-angular-server/action.yml +++ b/.github/workflows/actions/build-angular-server/action.yml @@ -12,7 +12,7 @@ runs: - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - name: Install Angular Server Dependencies run: pnpm install diff --git a/.github/workflows/actions/build-angular/action.yml b/.github/workflows/actions/build-angular/action.yml index 326b4a8632..a5548340b7 100644 --- a/.github/workflows/actions/build-angular/action.yml +++ b/.github/workflows/actions/build-angular/action.yml @@ -12,7 +12,7 @@ runs: - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - name: Install Angular Dependencies run: pnpm install diff --git a/.github/workflows/actions/build-core-stencil-prerelease/action.yml b/.github/workflows/actions/build-core-stencil-prerelease/action.yml index 46dad3dbc2..f1f8851796 100644 --- a/.github/workflows/actions/build-core-stencil-prerelease/action.yml +++ b/.github/workflows/actions/build-core-stencil-prerelease/action.yml @@ -17,18 +17,18 @@ runs: version: 8 - name: Install Dependencies run: pnpm install - working-directory: ./core + working-directory: ./packages/core shell: bash - name: Install Stencil ${{ inputs.stencil-version }} - working-directory: ./core + working-directory: ./packages/core run: pnpm i @stencil/core@${{ inputs.stencil-version }} shell: bash - name: Build Core run: pnpm npm run build -- --ci --debug --verbose - working-directory: ./core + working-directory: ./packages/core shell: bash - uses: ./.github/workflows/actions/upload-archive with: name: ionic-core - output: core/CoreBuild.zip - paths: core/dist core/components core/css core/hydrate core/loader core/src/components.d.ts + output: packages/packages/core/CoreBuild.zip + paths: packages/core/dist packages/core/components packages/core/css packages/core/hydrate packages/core/loader packages/core/src/components.d.ts diff --git a/.github/workflows/actions/build-core/action.yml b/.github/workflows/actions/build-core/action.yml index 78428b61be..58cb86470f 100644 --- a/.github/workflows/actions/build-core/action.yml +++ b/.github/workflows/actions/build-core/action.yml @@ -17,21 +17,21 @@ runs: version: 8 - name: Install Dependencies run: pnpm install - working-directory: ./core + working-directory: ./packages/core shell: bash # If an Ionicons version was specified install that. # Otherwise just use the version defined in the package.json. - name: Install Ionicons Version if: inputs.ionicons-version != '' run: pnpm install ionicons@${{ inputs.ionicons-version }} - working-directory: ./core + working-directory: ./packages/core shell: bash - name: Build Core run: pnpm run build --ci - working-directory: ./core + working-directory: ./packages/core shell: bash - uses: ./.github/workflows/actions/upload-archive with: name: ionic-core - output: core/CoreBuild.zip - paths: core/dist core/components core/css core/hydrate core/loader core/src/components.d.ts core/api.txt + output: packages/core/CoreBuild.zip + paths: packages/core/dist packages/core/components packages/core/css packages/core/hydrate packages/core/loader packages/core/src/components.d.ts packages/core/api.txt diff --git a/.github/workflows/actions/build-react-router/action.yml b/.github/workflows/actions/build-react-router/action.yml index 867eda8ec0..dfa5860b9d 100644 --- a/.github/workflows/actions/build-react-router/action.yml +++ b/.github/workflows/actions/build-react-router/action.yml @@ -12,7 +12,7 @@ runs: - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - uses: ./.github/workflows/actions/download-archive with: diff --git a/.github/workflows/actions/build-react/action.yml b/.github/workflows/actions/build-react/action.yml index 668cb77774..574ccbc235 100644 --- a/.github/workflows/actions/build-react/action.yml +++ b/.github/workflows/actions/build-react/action.yml @@ -12,7 +12,7 @@ runs: - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - name: Install React Dependencies run: pnpm install diff --git a/.github/workflows/actions/build-vue-router/action.yml b/.github/workflows/actions/build-vue-router/action.yml index a4f5845bd3..42224c804d 100644 --- a/.github/workflows/actions/build-vue-router/action.yml +++ b/.github/workflows/actions/build-vue-router/action.yml @@ -12,7 +12,7 @@ runs: - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - uses: ./.github/workflows/actions/download-archive with: diff --git a/.github/workflows/actions/build-vue/action.yml b/.github/workflows/actions/build-vue/action.yml index bc24a2e220..3c935caa68 100644 --- a/.github/workflows/actions/build-vue/action.yml +++ b/.github/workflows/actions/build-vue/action.yml @@ -12,7 +12,7 @@ runs: - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - name: Install Vue Dependencies run: pnpm install diff --git a/.github/workflows/actions/test-angular-e2e/action.yml b/.github/workflows/actions/test-angular-e2e/action.yml index 7f4db51ded..507a213890 100644 --- a/.github/workflows/actions/test-angular-e2e/action.yml +++ b/.github/workflows/actions/test-angular-e2e/action.yml @@ -15,7 +15,7 @@ runs: - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - uses: ./.github/workflows/actions/download-archive with: diff --git a/.github/workflows/actions/test-core-clean-build/action.yml b/.github/workflows/actions/test-core-clean-build/action.yml index 8832e71748..706605bdc2 100644 --- a/.github/workflows/actions/test-core-clean-build/action.yml +++ b/.github/workflows/actions/test-core-clean-build/action.yml @@ -10,7 +10,7 @@ runs: - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - name: Check Diff run: | @@ -24,4 +24,4 @@ runs: exit 1 } shell: bash - working-directory: ./core + working-directory: ./packages/core diff --git a/.github/workflows/actions/test-core-lint/action.yml b/.github/workflows/actions/test-core-lint/action.yml index de51576fe2..05c990e431 100644 --- a/.github/workflows/actions/test-core-lint/action.yml +++ b/.github/workflows/actions/test-core-lint/action.yml @@ -11,16 +11,16 @@ runs: version: 8 - name: Install Dependencies run: pnpm install - working-directory: ./core + working-directory: ./packages/core shell: bash - name: Lint run: pnpm run lint shell: bash - working-directory: ./core + working-directory: ./packages/core # Lint changes should be pushed # to the branch before the branch # is merge eligible. - name: Check Lint Results run: git diff --exit-code shell: bash - working-directory: ./core + working-directory: ./packages/core diff --git a/.github/workflows/actions/test-core-screenshot/action.yml b/.github/workflows/actions/test-core-screenshot/action.yml index 093256e4bb..d047ff455b 100644 --- a/.github/workflows/actions/test-core-screenshot/action.yml +++ b/.github/workflows/actions/test-core-screenshot/action.yml @@ -22,12 +22,12 @@ runs: - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - name: Install Playwright Dependencies run: pnpm install && pnpm exec playwright install && pnpm exec playwright install-deps shell: bash - working-directory: ./core + working-directory: ./packages/core - id: clean-component-name name: Clean Component Name # Remove `ion-` prefix from the `component` variable if it exists. @@ -52,7 +52,7 @@ runs: if: inputs.update != 'true' run: pnpm run test.e2e ${{ steps.set-test-file.outputs.testFile }} --shard=${{ inputs.shard }}/${{ inputs.totalShards }} shell: bash - working-directory: ./core + working-directory: ./packages/core - name: Test and Update id: test-and-update if: inputs.update == 'true' @@ -82,7 +82,7 @@ runs: zip -q -r ../../UpdatedScreenshots-${{ inputs.shard }}-${{ inputs.totalShards }}.zip core fi shell: bash - working-directory: ./core + working-directory: ./packages/core - name: Archive Updated Screenshots if: inputs.update == 'true' && steps.test-and-update.outputs.hasUpdatedScreenshots == 'true' uses: actions/upload-artifact@v4 diff --git a/.github/workflows/actions/test-core-spec/action.yml b/.github/workflows/actions/test-core-spec/action.yml index 2426dc4574..eb0dc36d33 100644 --- a/.github/workflows/actions/test-core-spec/action.yml +++ b/.github/workflows/actions/test-core-spec/action.yml @@ -14,19 +14,19 @@ runs: version: 8 - name: Install Dependencies run: pnpm install - working-directory: ./core + working-directory: ./packages/core shell: bash - name: Install Stencil ${{ inputs.stencil-version }} run: pnpm install @stencil/core@${{ inputs.stencil-version }} shell: bash - working-directory: ./core + working-directory: ./packages/core if: ${{ inputs.stencil-version != '' }} - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - name: Test run: pnpm run test.spec --ci shell: bash - working-directory: ./core + working-directory: ./packages/core diff --git a/.github/workflows/actions/test-react-e2e/action.yml b/.github/workflows/actions/test-react-e2e/action.yml index 0253289512..9b8f45576b 100644 --- a/.github/workflows/actions/test-react-e2e/action.yml +++ b/.github/workflows/actions/test-react-e2e/action.yml @@ -15,7 +15,7 @@ runs: - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - uses: ./.github/workflows/actions/download-archive with: diff --git a/.github/workflows/actions/test-react-router-e2e/action.yml b/.github/workflows/actions/test-react-router-e2e/action.yml index d8985a2138..64a0fbbb41 100644 --- a/.github/workflows/actions/test-react-router-e2e/action.yml +++ b/.github/workflows/actions/test-react-router-e2e/action.yml @@ -15,7 +15,7 @@ runs: - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - uses: ./.github/workflows/actions/download-archive with: diff --git a/.github/workflows/actions/test-vue-e2e/action.yml b/.github/workflows/actions/test-vue-e2e/action.yml index a19bb89654..920e1f731e 100644 --- a/.github/workflows/actions/test-vue-e2e/action.yml +++ b/.github/workflows/actions/test-vue-e2e/action.yml @@ -15,7 +15,7 @@ runs: - uses: ./.github/workflows/actions/download-archive with: name: ionic-core - path: ./core + path: ./packages/core filename: CoreBuild.zip - uses: ./.github/workflows/actions/download-archive with: diff --git a/.github/workflows/actions/update-reference-screenshots/action.yml b/.github/workflows/actions/update-reference-screenshots/action.yml index d33c5e55ce..5efe62a51c 100644 --- a/.github/workflows/actions/update-reference-screenshots/action.yml +++ b/.github/workflows/actions/update-reference-screenshots/action.yml @@ -54,4 +54,4 @@ runs: fi shell: bash - working-directory: ./core + working-directory: ./packages/core