-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.06 KB
/
pr.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
---
name: Test Packages
on:
pull_request:
jobs:
testall:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: setup
shell: powershell
run: |
$profileInstall = @'
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
'@
$profilePath = Split-Path -parent $profile
New-Item $profilePath -ItemType Directory
$profileInstall | Out-File $profile
./setup/au_setup.ps1
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
- run: ./test_all.ps1
shell: powershell
env:
github_user_repo: ${{ env.GITHUB_REPOSITORY }}
- run: |
Get-Content -Path "Update-Force-Test-.md" | Out-File -FilePath "$env:GITHUB_STEP_SUMMARY" -Append