From 103544ec5d1e84b9fac6f0ab99c009ba66eb5dec Mon Sep 17 00:00:00 2001 From: Marc Szanto <11840265+Xemdo@users.noreply.github.com> Date: Sat, 23 Sep 2023 10:45:26 -0700 Subject: [PATCH] Fix Github Actions Windows test issues (#278) Fixed Github Actions tests on Windows, updated all Github actions dependencies to latest versions, and bumped Go version to 1.20 --- .github/workflows/main.yml | 4 ++-- .github/workflows/test.yml | 6 +++--- go.mod | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e0035920..3d95677f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,10 +12,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build with xgo - uses: crazy-max/ghaction-xgo@v2 + uses: crazy-max/ghaction-xgo@v3 with: dest: build targets: windows/amd64,linux/amd64,darwin/amd64 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c4f89c93..6fc087d1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,15 +4,15 @@ jobs: test: strategy: matrix: - go-version: [1.18.x] + go-version: [1.20.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Test run: go test ./... -timeout=120s diff --git a/go.mod b/go.mod index e02aed7a..8d712da2 100755 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/twitchdev/twitch-cli -go 1.18 +go 1.20 require ( github.com/TylerBrock/colorjson v0.0.0-20200706003622-8a50f05110d2