From a1d96ee032472731851289c6aaceb2cd97ac3b58 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Thu, 12 Oct 2023 13:18:10 -0400 Subject: [PATCH] chore(ci): add workflow for testing ionicons devc build --- .github/workflows/actions/build-core/action.yml | 12 ++++++++++++ .github/workflows/build.yml | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/.github/workflows/actions/build-core/action.yml b/.github/workflows/actions/build-core/action.yml index 17e92a01db3..b2b9fd75ed9 100644 --- a/.github/workflows/actions/build-core/action.yml +++ b/.github/workflows/actions/build-core/action.yml @@ -1,5 +1,10 @@ name: 'Build Ionic Core' description: 'Build Ionic Core' +inputs: + ionicons-version: + description: 'The NPM tag of ionicons to install.' + type: string + required: false runs: using: 'composite' steps: @@ -11,6 +16,13 @@ runs: run: npm install working-directory: ./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: npm install ionicons@${{ inputs.ionicons-version }} + working-directory: ./core + shell: bash - name: Build Core run: npm run build -- --ci working-directory: ./core diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe8f9f2e2d3..c026db383de 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,12 @@ on: pull_request: branches: [ '**' ] merge_group: + workflow_dispatch: + inputs: + ionicons_npm_release_tag: + required: false + type: string + description: What version of ionicons should be pulled from NPM? Use this if you want to test a custom version of Ionicons with Ionic. # When pushing a new commit we should # cancel the previous test run to not @@ -18,6 +24,8 @@ jobs: steps: - uses: actions/checkout@v3 - uses: ./.github/workflows/actions/build-core + with: + ionicons-version: ${{ inputs.ionicons_npm_release_tag }} test-core-clean-build: needs: [build-core]