Use msi capabilities for chef (#4949) #9193
This file contains hidden or 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: windows-test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- '.github/workflows/windows-test.yml' | |
- 'cmd/**' | |
- 'internal/**' | |
- 'pkg/**' | |
- 'tests/**' | |
- 'Makefile' | |
- 'go.mod' | |
- 'go.sum' | |
- '!**.md' | |
- '!internal/buildscripts/**' | |
env: | |
GO_VERSION: '1.21.11' | |
concurrency: | |
group: windows-test-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
windows-test: | |
name: windows-test | |
runs-on: ${{ matrix.OS }} | |
strategy: | |
matrix: | |
OS: [ "windows-2022" ] | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
cache-dependency-path: '**/go.sum' | |
- name: Unit tests with coverage | |
run: | | |
$ErrorActionPreference = 'Stop' | |
$env:GOPATH = "${env:USERPROFILE}\go" | |
$env:PATH = "$env:PATH;${env:GOPATH}\bin" | |
go env -w CGO_ENABLED=0 | |
go test -v -cover ./... |