JS #27
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: JS | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| checks: write | |
| contents: write | |
| packages: read | |
| actions: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| name: Build Angular Project and Run PSE | |
| steps: | |
| # Checkout repository | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # Setup Node.js | |
| - name: Use Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "22.11.0" | |
| # Install global tools | |
| # - name: Install global tools | |
| # run: | | |
| # npm install -g @angular/cli | |
| # npm install -g yarn | |
| # npm install -g gulp-cli | |
| # Setup PSE | |
| - name: Setup PSE | |
| uses: invisirisk/pse-action@develop | |
| with: | |
| api_url: "https://app.stage.invisirisk.com" | |
| app_token: ${{ secrets.IR_API_KEY_DEP_STAGE }} | |
| # Install project dependencies | |
| - name: Install dependencies | |
| run: npm install --legacy-peer-deps | |
| # Cleanup PSE | |
| - name: Cleanup PSE | |
| if: always() | |
| uses: invisirisk/pse-action@develop | |
| with: | |
| cleanup: "true" | |
| gather_analytics: | |
| runs-on: ubuntu-latest | |
| name: Gather Analytics | |
| needs: build-and-deploy | |
| if: always() | |
| steps: | |
| - name: Gather Status | |
| uses: invisirisk/pse-action@develop | |
| with: | |
| api_url: "https://app.stage.invisirisk.com" | |
| app_token: ${{ secrets.IR_API_KEY_DEP_STAGE }} | |
| send_job_status: "true" | |
| debug: "true" |