Skip to content

ci: update actions/checkout to v4 #26

ci: update actions/checkout to v4

ci: update actions/checkout to v4 #26

Workflow file for this run

name: Run tests
on:
push:
branches: [ master ]
paths-ignore:
- '**.md'
- '.vscode/**'
pull_request:
branches: [ master ]
paths-ignore:
- '**.md'
- '.vscode/**'
workflow_dispatch:
jobs:
test:
name: Run tests
runs-on: windows-latest
env:
SCOOP: ${{ github.workspace }}\scoop
SCOOP_HOME: ${{ github.workspace }}\scoop\apps\scoop\current
SCOOP_HELPERS: ${{ github.workspace }}\scoop_helpers
steps:
- name: Checkout bucket
uses: actions/checkout@v4
with:
path: bucket
fetch-depth: 2
- name: Checkout scoop
uses: actions/checkout@v4
with:
repository: lukesampson/scoop
ref: v0.3.1
path: scoop\apps\scoop\current
- name: Run tests
run: |
# from test/bin/init.ps1
Install-Module -Repository PSGallery -Scope CurrentUser -Force -Name Pester -RequiredVersion 4.10.1 -SkipPublisherCheck
Install-Module -Repository PSGallery -Scope CurrentUser -Force -Name BuildHelpers
Set-BuildEnvironment -Force
# from test/bin/test.ps1
Write-Host 'Invoke-Pester' -PassThru
$result = Invoke-Pester -PassThru
if ($result.FailedCount -gt 0) {
exit $result.FailedCount
}
working-directory: ${{ github.workspace }}\bucket
env:
APPVEYOR_REPO_COMMIT: ${{ github.sha }}