Skip to content

Fix Dependabot security vulnerabilities (#1546) #4333

Fix Dependabot security vulnerabilities (#1546)

Fix Dependabot security vulnerabilities (#1546) #4333

Workflow file for this run

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# CI workflow for PRs and merges to main
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
name: PullRequest
on:
push:
branches: [main]
pull_request:
branches:
- main
- "release/stable"
- "features/PowerPagesAgent"
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Setup .NET 9
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
- name: List installed .NET SDKs
run: dotnet --list-sdks
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 20
# - name: Install dependencies
# run: npm i -g npm
- name: Build and unit test
run: |
npm ci
npm run dist
env:
AZ_DevOps_Read_PAT: ${{ secrets.AZ_DevOps_Read_PAT }}
- name: Run Debugger integration tests
uses: coactions/setup-xvfb@v1
with:
run: |
npm run test-integration
- name: Run Web integration tests
uses: coactions/setup-xvfb@v1
with:
run: |
npm run test-web-integration
- name: Run Desktop integration tests
uses: coactions/setup-xvfb@v1
with:
run: |
npm run test-desktop-int
- name: Run Common integration tests
uses: coactions/setup-xvfb@v1
with:
run: |
npm run test-common-int
web-sanity:
if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'release/stable'
continue-on-error: true
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Build extension
run: npm run dist
- name: Run E2E web sanity tests
run: npm run test-e2e-web-sanity
env:
CI: true
PP_TEST_VSCODE_URL: ${{ secrets.PP_TEST_VSCODE_URL }}
PP_TEST_USERNAME: ${{ secrets.PP_TEST_USERNAME }}
PP_TEST_PASSWORD: ${{ secrets.PP_TEST_PASSWORD }}
- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-web-sanity
path: playwright-report-web-sanity/
retention-days: 7
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: web-sanity-test-results
path: test-results/web-sanity-results.xml
retention-days: 7