-
Notifications
You must be signed in to change notification settings - Fork 202
23 lines (22 loc) · 1.04 KB
/
check-installation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Check installation
on: pull_request
jobs:
install-invoke:
name: Install Invoke-Atomic
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 3
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Install Invoke-AtomicRedTeam
shell: pwsh
run: |
IEX (IWR 'https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.ref }}/install-atomicredteam.ps1' -UseBasicParsing);
Install-AtomicRedTeam -RepoOwner "${{ github.event.pull_request.head.repo.owner.login }}" -Branch "${{ github.event.pull_request.head.ref }}" -Force
if($error.contains("Installation of AtomicRedTeam Failed")){
exit 1
}
IEX (IWR 'https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.ref }}/install-atomicsfolder.ps1' -UseBasicParsing);
Install-AtomicsFolder -Force
Invoke-AtomicTest All -ShowDetailsBrief