From fb9ee70a3004888224c6342f51a33c6a2413a801 Mon Sep 17 00:00:00 2001 From: myaaaaaaaaa <103326468+myaaaaaaaaa@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:00:21 -0400 Subject: [PATCH] Fix out-of-date workflow --- .github/workflows/main.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a15cbec..91060e0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,23 +7,27 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.17, 1.12] + go-version: ['', 'stable'] os: [macos-latest, windows-latest, ubuntu-latest] + exclude: + - os: macos-latest + go-version: '' steps: - name: Install dependencies (linux) if: ${{ matrix.os == 'ubuntu-latest' }} run: sudo apt-get update && sudo apt-get install libgl1-mesa-dev - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ${{matrix.go-version}} - - name: Check out module uses: actions/checkout@v2 with: fetch-depth: 1 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{matrix.go-version}} + go-version-file: go.mod + - name: Run tests run: go test -v -race ./...