Trigger Pipeline #1
Workflow file for this run
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: Build and Deploy Script | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - feature/** | |
| pull_request: | |
| branches: | |
| - main | |
| - feature/** | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Adding Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.16.0 | |
| cache: 'npm' | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Run Unit Tests | |
| run: npm test -- --watch=false --browsers=ChromeHeadless | |
| - name: Build Angular App for production | |
| run: npm run build -- --configuration=production | |
| - name: Upload Build Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: angular-dist | |
| path: dist/ |