Merge pull request #21598 from nirs/unit-test-on-macos-15

test: Run unit tests on macos-15
pull/21603/head
Medya Ghazizadeh 2025-09-19 14:05:02 -07:00 committed by GitHub
commit 4905bbc60b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,7 @@ on:
push: push:
branches: [ master ] branches: [ master ]
paths: paths:
- .github/workflows/unit-test.yml
- go.mod - go.mod
- '**/*.go' - '**/*.go'
- Makefile - Makefile
@ -13,6 +14,7 @@ on:
- '!**/*.json' - '!**/*.json'
pull_request: pull_request:
paths: paths:
- .github/workflows/unit-test.yml
- go.mod - go.mod
- '**/*.go' - '**/*.go'
- Makefile - Makefile
@ -35,21 +37,21 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-22.04, macos-13, windows-2022] os: [ubuntu-22.04, macos-15, windows-2022]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
with: with:
go-version: ${{env.GO_VERSION}} go-version: ${{env.GO_VERSION}}
cache: true cache: true
- name: Download Dependencies - name: Download Dependencies
run: go mod download run: go mod download
# needed because pkg/drivers/kvm/domain.go:28:2: # needed because pkg/drivers/kvm/domain.go:28:2:
- name: Install libvirt (Linux) - name: Install libvirt (Linux)
if: runner.os == 'Linux' if: runner.os == 'Linux'
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libvirt-dev sudo apt-get install -y libvirt-dev
- name: Install make (Windows) - name: Install make (Windows)
if: runner.os == 'Windows' if: runner.os == 'Windows'