Skip to content

Corrected issue with Windows. #5

Corrected issue with Windows.

Corrected issue with Windows. #5

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 before restoring cache
- name: Clean Go Modules Directory
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
Remove-Item -Recurse -Force $HOME\.cache\go-build, $HOME\go\pkg\mod
else
rm -rf ~/.cache/go-build ~/go/pkg/mod
fi
shell: bash
# 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