pion / .goassets

Asset files automatically deployed to Go package repositories
https://pion.ly/
MIT License
8 stars 10 forks source link

Automatically update Go versions in workflows #98

Closed at-wat closed 1 year ago

at-wat commented 1 year ago

https://github.com/pion/.goassets/pull/94#discussion_r998844510

Update result will be

diff --git a/ci/.github/workflows/test.yaml b/ci/.github/workflows/test.yaml
index 93d0406..35efbc9 100644
--- a/ci/.github/workflows/test.yaml
+++ b/ci/.github/workflows/test.yaml
@@ -26,7 +26,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go: ["1.17", "1.18"] # auto-update/supported-go-version-list
+        go: ['1.18', '1.17'] # auto-update/supported-go-version-list
       fail-fast: false
     name: Go ${{ matrix.go }}
     steps:
@@ -89,7 +89,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        go: ["1.17", "1.18"] # auto-update/supported-go-version-list
+        go: ['1.18', '1.17'] # auto-update/supported-go-version-list
       fail-fast: false
     name: Go i386 ${{ matrix.go }}
     steps:
@@ -145,7 +145,7 @@ jobs:
       - name: Download Go
         run: curl -sSfL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -C ~ -xzf -
         env:
-          GO_VERSION: 1.17 # auto-update/latest-go-version
+          GO_VERSION: '1.18' # auto-update/latest-go-version

       - name: Set Go Root
         run: echo "GOROOT=${HOME}/go" >> $GITHUB_ENV
diff --git a/ci/.github/workflows/tidy-check.yaml b/ci/.github/workflows/tidy-check.yaml
index ff2ef50..b8e7687 100644
--- a/ci/.github/workflows/tidy-check.yaml
+++ b/ci/.github/workflows/tidy-check.yaml
@@ -30,7 +30,7 @@ jobs:
       - name: Setup Go
         uses: actions/setup-go@v3
         with:
-          go-version: 1.17 # auto-update/latest-go-version
+          go-version: '1.18' # auto-update/latest-go-version
       - name: check
         run: |
           go mod download