mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor: use new path for core
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
10
.github/workflows/actions/build-core/action.yml
vendored
10
.github/workflows/actions/build-core/action.yml
vendored
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -54,4 +54,4 @@ runs:
|
||||
fi
|
||||
|
||||
shell: bash
|
||||
working-directory: ./core
|
||||
working-directory: ./packages/core
|
||||
|
||||
Reference in New Issue
Block a user