-
Notifications
You must be signed in to change notification settings - Fork 15
42 lines (36 loc) · 1.02 KB
/
pr-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Pull Request Workflow
on:
pull_request:
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
env:
SOLUTION_FILE_PATH: .
DEFAULT_BRANCH: main
jobs:
build-project:
uses: snyk/snyk-visual-studio-plugin/.github/workflows/build-project.yml@main
with:
solution-file-path: .
secrets: inherit
test:
needs: build-project
name: Run Unit-Tests
runs-on: windows-2022
defaults:
run:
working-directory: ${{ github.workspace }}
env:
TEST_API_TOKEN: ${{ secrets.TEST_API_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts
- name: Setup VSTest
uses: darenm/Setup-VSTest@v1
- name: Tests
run: vstest.console.exe **\*.Tests.dll /TestCaseFilter:"FullyQualifiedName!=Xunit.Instances.VisualStudio&integration!=true" #exclude integration tests and the psuedo-tests that launch a VS instance