Skip to content

NPS Survey Form

NPS Survey Form #2650

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:
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 Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
- name: Configure .npmrc for Azure Artifacts
run: |
echo "@gia:registry=https://msazure.pkgs.visualstudio.com/One/_packaging/BAP_GIA_Survey_Feed/npm/registry/" > ~/.npmrc
echo "always-auth=true" >> ~/.npmrc
echo "//msazure.pkgs.visualstudio.com/One/_packaging/BAP_GIA_Survey_Feed/npm/registry/:username=AzureDevOps" >> ~/.npmrc
echo "//msazure.pkgs.visualstudio.com/One/_packaging/BAP_GIA_Survey_Feed/npm/registry/:_password=$(echo -n ${{ secrets.AZ_DevOps_Read_PAT }} | base64)" >> ~/.npmrc
echo "//msazure.pkgs.visualstudio.com/One/_packaging/BAP_GIA_Survey_Feed/npm/registry/:email=npm@npm.com" >> ~/.npmrc
- name: Build and unit test
run: |
npm ci
npm run dist
env:
AZ_DevOps_Read_PAT: ${{ secrets.AZ_DevOps_Read_PAT }}
- name: Run integration tests
uses: coactions/setup-xvfb@v1
with:
run: |
npm run test-integration
npm run test-web-integration