Test package bumps on linux build machine #369
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: One Identity Frontend CI Build | |
| description: CI workflow to build, package and test One Identity frontend applications | |
| on: | |
| push: | |
| branches: [ v100 ] | |
| pull_request: | |
| branches: [ v100, v93 ] | |
| jobs: | |
| build: | |
| name: Build and package applications | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: ./.github/actions/setup # Setup steps | |
| - name: Build All | |
| working-directory: ./imxweb | |
| run: npx nx run-many -t build -c production | |
| - name: Zip applications | |
| run: | | |
| # Dynamically get app names from projects dir | |
| apps=$(ls -d ./imxweb/projects/*-app* 2>/dev/null | xargs -n1 basename) | |
| 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 | |
| test: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: ./.github/actions/setup # Setup steps | |
| - name: Test All | |
| working-directory: ./imxweb | |
| run: npm run nx:test-ci | |
| timeout-minutes: 30 |