Skip to content

Added Microsoft Authentication provider as default method (#78) #66

Added Microsoft Authentication provider as default method (#78)

Added Microsoft Authentication provider as default method (#78) #66

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build and Test
# Controls when the action will run.
on:
# Triggers the workflow pull request events but only for the master branch
pull_request:
branches: [master]
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-and-test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Configure yarnrc
run: echo "script-shell /bin/bash" >> .yarnrc
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.4
with:
node-version: '12.x'
- name: NPM or Yarn install with caching
uses: bahmutov/npm-install@v1.6.0
with:
install-command: yarn install
- name: Build
run: yarn run vscode:prepublish
# Runs a single command using the runners shell
- name: Run tests
run: xvfb-run -a yarn run test
if: runner.os == 'Linux'
env:
TEST_JUNIT_XML_PATH: ${{github.workspace}}/test-results.xml
VSCODE_PR_AZDO_TEST_PAT: ${{ secrets.AZDO_PAT_TOKEN_TEST }}
- run: yarn run test
if: runner.os != 'Linux'
env:
TEST_JUNIT_XML_PATH: ${{github.workspace}}/test-results.xml
VSCODE_PR_AZDO_TEST_PAT: ${{ secrets.AZDO_PAT_TOKEN_TEST }}
- name: Upload Unit Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Unit Test Results
path: ${{github.workspace}}/test-results.xml
publish-test-results:
name: 'Publish Unit Tests Results'
needs: build-and-test
runs-on: ubuntu-latest
# the build-and-test job might be skipped, we don't need to run this job then
if: success() || failure()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
path: artifacts
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1.7
with:
check_name: Unit Test Results
github_token: ${{ secrets.GITHUB_TOKEN }}
files: ./**/test-results.xml