๐Ÿ“ฆ ionic-team / ionic-framework

๐Ÿ“„ action.yml ยท 28 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28name: 'Test Core Clean Build'
description: 'Test Core Clean Build'
runs:
  using: 'composite'
  steps:
    - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
      with:
        node-version: 24.x

    - uses: ./.github/workflows/actions/download-archive
      with:
        name: ionic-core
        path: ./core
        filename: CoreBuild.zip
    - name: ๐Ÿ” Check Diff
      run: |
        git diff --exit-code || {
          echo -e "\033[1;31mโš ๏ธ Error: Differences Detected โš ๏ธ\033[0m"
          echo -e "\033[1;31mThere are uncommitted changes between the build outputs from CI and your branch.\033[0m"
          echo -e "\033[1;31mPlease ensure you have followed these steps:\033[0m"
          echo -e "\033[1;31m1. Run 'npm run build' locally to generate the latest build output.\033[0m"
          echo -e "\033[1;31m2. Commit and push all necessary changes to your branch.\033[0m"
          echo -e "\033[1;31m3. Compare and validate the differences before proceeding.\033[0m"
          exit 1
        }
      shell: bash
      working-directory: ./core