Update actions/upload-artifact action to v4.6.0 #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
name: Test packages | |
runs-on: windows-2022 | |
env: | |
# AU version to use or empty to use the latest. Specify branch name to use development version from GitHub | |
AU_VERSION: | |
# Use 1 to test all, or N to split testing into N groups | |
AU_TEST_GROUPS: 1 | |
# Repository containing packages | |
GITHUB_USER_REPO: pascalberger/chocolatey-packages | |
# Gist ID for test results | |
GIST_ID_TEST: | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 # Determination of changed packages requires complete log | |
# Defines Git settings used for updating packages | |
- name: Initialize Git environment | |
shell: powershell | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Pascal Berger" | |
git config --global core.safecrlf false | |
# Show information about available environment | |
- name: Show environment information | |
shell: powershell | |
run: | | |
Get-CimInstance win32_operatingsystem -Property Caption, OSArchitecture, Version | Format-List Caption, OSArchitecture, Version | |
$PSVersionTable | |
git --version | |
choco --version | |
# Make Chocolatey Automatic Package Updater Module available | |
- name: Clone AU | |
shell: powershell | |
run: | | |
git clone -q https://github.com/majkinetor/au.git $Env:TEMP/au | |
. "$Env:TEMP/au/scripts/Install-AU.ps1" $Env:AU_VERSION | |
# Install required modules | |
- name: Install required modules | |
shell: powershell | |
run: | | |
Install-Module PowerShellForGitHub -Force | |
# Test packages | |
- name: Test packages | |
continue-on-error: true | |
shell: powershell | |
run: | | |
Set-Service wuauserv -StartupType Manual | |
git fetch origin master:refs/remotes/origin/master | |
.\scripts\Test-RepoPackage.ps1 -CleanFiles -TakeScreenshots -artifactsDirectory ${{ env.RUNNER_TEMP }}\artifacts | |
env: | |
github_api_key: ${{ secrets.GITHUBREPO_API_KEY }} | |
- name: Publish install_snapshot.7z | |
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
continue-on-error: true | |
with: | |
name: install_snapshot.7z | |
path: ${{ env.RUNNER_TEMP }}\artifacts\install_snapshot.7z |