Explorar el Código

chore: ensure all setup-go calls have the same arguments (#3508)

jose-fully-ported hace 2 años
padre
commit
d562db8c99

+ 1 - 1
.github/workflows/porter_stack_porter-ui.yml

@@ -20,9 +20,9 @@ jobs:
       - name: Setup Go
       - name: Setup Go
         uses: actions/setup-go@v4
         uses: actions/setup-go@v4
         with:
         with:
-          go-version-file: go.mod
           cache: false
           cache: false
           go-version: '1.20.5'
           go-version: '1.20.5'
+          go-version-file: go.mod
       - name: Download Go Modules
       - name: Download Go Modules
         run: go mod download
         run: go mod download
       - name: Build Server Binary
       - name: Build Server Binary

+ 6 - 3
.github/workflows/pr_push_checks.yaml

@@ -20,12 +20,13 @@ jobs:
             ~/.cache/go-build
             ~/.cache/go-build
             ~/go/pkg/mod
             ~/go/pkg/mod
           key: porter-go-${{ hashFiles('**/go.sum') }}
           key: porter-go-${{ hashFiles('**/go.sum') }}
-      - name: Download Go Modules
-        run: go mod download
       - uses: actions/setup-go@v4
       - uses: actions/setup-go@v4
         with:
         with:
-          go-version-file: go.mod
           cache: false
           cache: false
+          go-version: '1.20.5'
+          go-version-file: go.mod
+      - name: Download Go Modules
+        run: go mod download
       - name: Run Go tests
       - name: Run Go tests
         run: go test ./${{ matrix.folder }}/...
         run: go test ./${{ matrix.folder }}/...
   linting:
   linting:
@@ -35,6 +36,8 @@ jobs:
       - uses: actions/setup-go@v4
       - uses: actions/setup-go@v4
         with:
         with:
           cache: false
           cache: false
+          go-version: '1.20.5'
+          go-version-file: go.mod
       - uses: actions/checkout@v3
       - uses: actions/checkout@v3
       - name: Setup Go Cache
       - name: Setup Go Cache
         uses: actions/cache@v3
         uses: actions/cache@v3

+ 8 - 4
.github/workflows/prerelease.yaml

@@ -112,9 +112,11 @@ jobs:
       - name: Checkout code
       - name: Checkout code
         uses: actions/checkout@v3
         uses: actions/checkout@v3
       - name: Set up Go
       - name: Set up Go
-        uses: actions/setup-go@v3
+        uses: actions/setup-go@v4
         with:
         with:
-          go-version: 1.20.5
+          cache: false
+          go-version: '1.20.5'
+          go-version-file: go.mod
       - name: Set up Node
       - name: Set up Node
         uses: actions/setup-node@v3
         uses: actions/setup-node@v3
         with:
         with:
@@ -182,9 +184,11 @@ jobs:
       - name: Checkout code
       - name: Checkout code
         uses: actions/checkout@v3
         uses: actions/checkout@v3
       - name: Set up Go
       - name: Set up Go
-        uses: actions/setup-go@v3
+        uses: actions/setup-go@v4
         with:
         with:
-          go-version: 1.20.5
+          cache: false
+          go-version: '1.20.5'
+          go-version-file: go.mod
       - name: Write Dashboard Environment Variables
       - name: Write Dashboard Environment Variables
         run: |
         run: |
           cat >./dashboard/.env <<EOL
           cat >./dashboard/.env <<EOL

+ 1 - 1
.github/workflows/production.yml

@@ -20,9 +20,9 @@ jobs:
       - name: Setup Go
       - name: Setup Go
         uses: actions/setup-go@v4
         uses: actions/setup-go@v4
         with:
         with:
-          go-version-file: go.mod
           cache: false
           cache: false
           go-version: '1.20.5'
           go-version: '1.20.5'
+          go-version-file: go.mod
       - name: Download Go Modules
       - name: Download Go Modules
         run: go mod download
         run: go mod download
       - name: Build Server Binary
       - name: Build Server Binary