Update CI-winpeas_dev_test.yml
This commit is contained in:
parent
949996a4a1
commit
274266630f
43
.github/workflows/CI-winpeas_dev_test.yml
vendored
43
.github/workflows/CI-winpeas_dev_test.yml
vendored
@ -5,51 +5,12 @@ on:
|
||||
branches:
|
||||
- winpeas_dev
|
||||
- linpeas_dev
|
||||
paths:
|
||||
- 'build_lists/sensitive_files.yaml'
|
||||
- 'winPEAS/winPEASexe/**'
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
Build_and_test_winpeas_dev:
|
||||
runs-on: windows-latest
|
||||
|
||||
# environment variables
|
||||
env:
|
||||
Solution_Path: 'winPEAS\winPEASexe\winPEAS.sln'
|
||||
Configuration: 'Release'
|
||||
|
||||
steps:
|
||||
# checkout
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
||||
- name: Setup MSBuild.exe
|
||||
uses: microsoft/setup-msbuild@v1.0.2
|
||||
|
||||
# Setup NuGet
|
||||
- name: Setup NuGet.exe
|
||||
uses: nuget/setup-nuget@v1
|
||||
|
||||
# Restore the packages for testing
|
||||
- name: Restore the application
|
||||
run: nuget restore $env:Solution_Path
|
||||
|
||||
# build
|
||||
- name: run MSBuild
|
||||
run: msbuild $env:Solution_Path
|
||||
|
||||
# Execute all unit tests in the solution
|
||||
- name: Execute unit tests
|
||||
run: dotnet test $env:Solution_Path
|
||||
|
||||
|
||||
jobs:
|
||||
create_pull_request:
|
||||
runs-on: ubuntu-latest
|
||||
needs: Build_and_test_winpeas_dev
|
||||
|
||||
steps:
|
||||
# checkout
|
||||
@ -62,4 +23,4 @@ jobs:
|
||||
with:
|
||||
destination_branch: "master"
|
||||
github_token: ${{ secrets.PULL_REQUEST_TOKEN }}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user