Skip to content

Corrected another issue with Windows testing. #6

Corrected another issue with Windows testing.

Corrected another issue with Windows testing. #6

Workflow file for this run

---
name: Pre-Build Workflow
on:
push:
branches:
- master
- develop
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-22.04
- ubuntu-24.04
- windows-2019
- windows-2022
- windows-2025
- macos-13
- macos-14
- macos-15
steps:
- uses: actions/checkout@v4
# Clean cache directories on Linux/Mac
- name: Clean Cache on Linux/Mac
if: runner.os != 'Windows'
run: |
rm -rf ~/.cache/go-build ~/go/pkg/mod
shell: bash
# Clean cache directories on Windows
- name: Clean Cache on Windows
if: runner.os == 'Windows'
run: |
Remove-Item -Recurse -Force $env:USERPROFILE\.cache\go-build, $env:USERPROFILE\go\pkg\mod
shell: pwsh
# Cache Go modules to speed up builds
- name: Cache Go Modules
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
go-mod-
# Run tests
- uses: ./.github/actions/test
# Lint the code
- uses: ./.github/actions/lint