diff --git a/.github/workflows/actions/build-core-stencil-eval/action.yml b/.github/workflows/actions/build-core-stencil-eval/action.yml deleted file mode 100644 index 8a714dba51..0000000000 --- a/.github/workflows/actions/build-core-stencil-eval/action.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: 'Build Ionic Core with Stencil Eval' -description: 'Build Ionic Core with an Evaluation Copy of Stencil' -runs: - using: 'composite' - steps: - - uses: actions/checkout@v3 - with: - ref: feature-7.0 - - uses: actions/setup-node@v3 - with: - node-version: 16.x - - - name: Install Dependencies - run: npm ci - working-directory: ./core - shell: bash - - name: Retrieve Stencil Repository - run: git clone https://github.com/ionic-team/stencil.git stencil-repo-tmp - shell: bash - - name: Report Stencil SHA - run: git rev-parse HEAD - working-directory: ./stencil-repo-tmp - shell: bash - - name: Build Stencil - run: npm ci && npm run build && npm pack - working-directory: ./stencil-repo-tmp - shell: bash - - name: Move the Stencil Build Artifact - # there isn't a great way to get the output of `npm pack`, just grab the first and hope for the best - run: mv $(ls ./stencil-repo-tmp/*.tgz | head -1) ./core/stencil-eval.tgz - shell: bash - - name: Install Stencil Eval - working-directory: ./core - run: npm i ./stencil-eval.tgz - shell: bash - - name: Clean Up Stencil Build - run: rm -rf stencil-repo-tmp - shell: bash - - name: Build Core - run: npm run build -- --ci - working-directory: ./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 diff --git a/.github/workflows/actions/build-core-stencil-nightly/action.yml b/.github/workflows/actions/build-core-stencil-nightly/action.yml new file mode 100644 index 0000000000..bfba3c5e6b --- /dev/null +++ b/.github/workflows/actions/build-core-stencil-nightly/action.yml @@ -0,0 +1,27 @@ +name: 'Build Ionic Core with Stencil Nightly' +description: 'Build Ionic Core with a Nightly Build of Stencil' +runs: + using: 'composite' + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16.x + + - name: Install Dependencies + run: npm ci + working-directory: ./core + shell: bash + - name: Install Stencil Nightly + working-directory: ./core + run: npm i @stencil/core@nightly + shell: bash + - name: Build Core + run: npm run build -- --ci + working-directory: ./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 diff --git a/.github/workflows/stencil-eval.yml b/.github/workflows/stencil-nightly.yml similarity index 85% rename from .github/workflows/stencil-eval.yml rename to .github/workflows/stencil-nightly.yml index 4f69f8a75c..b81d20a04e 100644 --- a/.github/workflows/stencil-eval.yml +++ b/.github/workflows/stencil-nightly.yml @@ -18,39 +18,31 @@ concurrency: cancel-in-progress: false jobs: - build-core-with-stencil-eval: + build-core-with-stencil-nightly: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - - uses: ./.github/workflows/actions/build-core-stencil-eval + - uses: ./.github/workflows/actions/build-core-stencil-nightly test-core-clean-build: - needs: [build-core-with-stencil-eval] + needs: [build-core-with-stencil-nightly] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/test-core-clean-build test-core-lint: - needs: [build-core-with-stencil-eval] + needs: [build-core-with-stencil-nightly] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/test-core-lint test-core-spec: - needs: [build-core-with-stencil-eval] + needs: [build-core-with-stencil-nightly] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/test-core-spec test-core-screenshot: @@ -68,12 +60,10 @@ jobs: # to be the length of the shard array. shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] totalShards: [20] - needs: [build-core-with-stencil-eval] + needs: [build-core-with-stencil-nightly] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/test-core-screenshot with: shard: ${{ matrix.shard }} @@ -98,12 +88,10 @@ jobs: run: exit 1 build-vue: - needs: [build-core-with-stencil-eval] + needs: [build-core-with-stencil-nightly] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/build-vue build-vue-router: @@ -111,8 +99,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/build-vue-router test-vue-e2e: @@ -124,8 +110,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/test-vue-e2e with: app: ${{ matrix.apps }} @@ -140,12 +124,10 @@ jobs: run: exit 1 build-angular: - needs: [build-core-with-stencil-eval] + needs: [build-core-with-stencil-nightly] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/build-angular build-angular-server: @@ -153,8 +135,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/build-angular-server test-angular-e2e: @@ -166,8 +146,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/test-angular-e2e with: app: ${{ matrix.apps }} @@ -182,12 +160,10 @@ jobs: run: exit 1 build-react: - needs: [build-core-with-stencil-eval] + needs: [build-core-with-stencil-nightly] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/build-react build-react-router: @@ -195,8 +171,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/build-react-router test-react-router-e2e: @@ -208,8 +182,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/test-react-router-e2e with: app: ${{ matrix.apps }} @@ -232,8 +204,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - ref: feature-7.0 - uses: ./.github/workflows/actions/test-react-e2e with: app: ${{ matrix.apps }}