From 6ad02793429cfda396e72cc5704091f569535d61 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 1/2] 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..75a9ed7 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] + include: + - os: ubuntu-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 ./... From 26a839585cc6ea53eaa36959db5f79bf3158e755 Mon Sep 17 00:00:00 2001 From: myaaaaaaaaa <103326468+myaaaaaaaaa@users.noreply.github.com> Date: Fri, 5 Jul 2024 14:43:13 -0400 Subject: [PATCH 2/2] Update actions/checkout and remove redundant fetch-depth --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75a9ed7..642f6b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,9 +19,7 @@ jobs: run: sudo apt-get update && sudo apt-get install libgl1-mesa-dev - name: Check out module - uses: actions/checkout@v2 - with: - fetch-depth: 1 + uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5