mirror of
https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite.git
synced 2025-12-24 00:39:02 +00:00
- added github actions for winpeas
- updated Beaprint - titles - added test solution
This commit is contained in:
23
.github/workflows/CI-winpeas_PR.yml
vendored
Normal file
23
.github/workflows/CI-winpeas_PR.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: CI-winpeas_PR
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- winpeas_dev
|
||||
paths:
|
||||
- 'build_lists\sensitive_files.yaml'
|
||||
- 'winPEAS\winPEASexe\**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
- name: pull-request
|
||||
uses: repo-sync/pull-request@v2
|
||||
with:
|
||||
destination_branch: "master"
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
48
.github/workflows/CI-winpeas_test.yml
vendored
Normal file
48
.github/workflows/CI-winpeas_test.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
name: CI-winpeas_test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- winpeas_dev
|
||||
paths:
|
||||
- 'build_lists\sensitive_files.yaml'
|
||||
- 'winPEAS\winPEASexe\**'
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
Build_and_test_winpeas:
|
||||
runs-on: windows-latest
|
||||
|
||||
# environment variables
|
||||
env:
|
||||
Solution_Path: 'winPEAS\winPEASexe\winPEAS.sln'
|
||||
Configuration: 'Release'
|
||||
|
||||
steps:
|
||||
# checkout
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Install the .NET Core workload
|
||||
- name: Install .NET 4.x.x
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 4.5.2
|
||||
|
||||
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
||||
- name: Setup MSBuild.exe
|
||||
uses: microsoft/setup-msbuild@v1.0.2
|
||||
|
||||
# Restore the packages for testing
|
||||
- name: Restore the application
|
||||
run: msbuild -m $env:Solution_Path /t:Restore /p:Configuration=$env:Configuration
|
||||
|
||||
# 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
|
||||
Reference in New Issue
Block a user