Skip to content

Test package bumps on linux build machine #365

Test package bumps on linux build machine

Test package bumps on linux build machine #365

Workflow file for this run

name: Build Angular workspace
on:
push:
branches: [ v100 ]
pull_request:
branches: [ v100, v93 ]
jobs:
setup:
name: Setup
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- name: Select Node version
id: node
shell: pwsh
run: |
# Determine branch (handles push vs PR)
$branch = "${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}"
# Select node version based on branch
switch ($branch) {
"v93" { $node = "20.x" }
"v100" { $node = "22.x" }
# Future changes:
# "v110" { $node = "24.x" }
default { $node = "22.x" }
}
# Output clear info for logs
Write-Host "🔹 Branch detected: $branch"
Write-Host "🔹 Node version selected: $node"
# Pass to subsequent steps
echo "version=$node" >> $env:GITHUB_OUTPUT
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: ${{ steps.node.outputs.version }}
- name: Install packages
working-directory: ./imxweb
run: |
npm install --skip-dialog
- name: Build All
working-directory: ./imxweb
run: npm run nx:build-all
timeout-minutes: 25
env:
NG_BUILD_PARALLEL: false
NX_DAEMON: false
# - name: Test All
# working-directory: ./imxweb
# run: npm run nx:test-ci
# timeout-minutes: 40
# - name: Zip applications
# run: |
# apps=("qbm-app-landingpage" "qer-app-portal" "qer-app-pwdportal" "custom-app")
# for app in "${apps[@]}"; do
# if [ -d "./imxweb/dist/$app" ]; then
# ( cd "./imxweb/dist/$app" && zip -r "../Html_${app}.zip" . )
# fi
# done
# - name: Upload artifacts
# uses: actions/upload-artifact@v6
# with:
# name: imxweb-apps
# path: ./imxweb/dist/Html_*.zip