Bump axios from 1.12.2 to 1.15.0 #614
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: ITP | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| REPORT_FORMATTER: mocha-reporter-gha | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| environment: QA | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: build | |
| path: dist | |
| - name: Run docs-generator | |
| run: npm run docs-generator | |
| - name: Check for documentation changes | |
| run: | | |
| if [[ -n $(git status --porcelain docs/) ]]; then | |
| echo "The following files in the docs directory and/or the commands related to them have been modified:" | |
| git status --porcelain docs/ | |
| echo "Please run 'npm run docs-generator' locally and commit the changes." | |
| exit 1 | |
| fi | |
| - name: Audit | |
| run: npm audit --audit-level=high | |
| - name: Lint | |
| run: npm run lint | |
| - name: Copyright Lint | |
| run: npm run lint:copyright | |
| - name: Test (Formatting) | |
| run: npm run test:formatting | |
| test_service: | |
| name: Tests (Service Client) | |
| runs-on: ubuntu-latest | |
| environment: QA | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Install dependencies | |
| run: npm ci | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: build | |
| - name: Test (Service Client) | |
| run: npm run test:service | |
| env: | |
| ITP_API_URL: ${{ vars.ITP_API_URL }} | |
| ITP_ISSUER_URL: ${{ vars.ITP_ISSUER_URL }} | |
| ITP_SERVICE_CLIENT_ID: ${{ vars.ITP_SERVICE_CLIENT_ID }} | |
| ITP_SERVICE_CLIENT_SECRET: ${{ secrets.ITP_SERVICE_CLIENT_SECRET }} | |
| test_native: | |
| name: Tests (Native Client) | |
| runs-on: ubuntu-latest | |
| environment: QA | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Install dependencies | |
| run: npm ci | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: build | |
| - name: Test (Native Client) | |
| run: npm run test:native | |
| env: | |
| ITP_API_URL: ${{ vars.ITP_API_URL }} | |
| ITP_ISSUER_URL: ${{ vars.ITP_ISSUER_URL }} | |
| ITP_NATIVE_TEST_CLIENT_ID: ${{ vars.ITP_NATIVE_TEST_CLIENT_ID }} | |
| ITP_TEST_USER_EMAIL: ${{ vars.ITP_TEST_USER_EMAIL }} | |
| ITP_TEST_USER_PASSWORD: ${{ secrets.ITP_TEST_USER_PASSWORD }} | |
| test_mocked: | |
| name: Tests (Mocked HTTP traffic) | |
| runs-on: ubuntu-latest | |
| environment: QA | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Install dependencies | |
| run: npm ci | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: build | |
| - name: Test | |
| run: npm run test:mocked |