loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

actions/setup-go use go-version-file (#27651)

These changes will allow not to specify the version of go in every
pipeline.

authored by

Yevhen Pavlov and committed by
GitHub
d98c8638 0f3ea4e1

+20 -17
+1 -1
.github/workflows/cron-licenses.yml
··· 13 13 - uses: actions/checkout@v4 14 14 - uses: actions/setup-go@v4 15 15 with: 16 - go-version: "~1.21" 16 + go-version-file: go.mod 17 17 check-latest: true 18 18 - run: make generate-license generate-gitignore 19 19 timeout-minutes: 40
+8 -5
.github/workflows/pull-compliance.yml
··· 19 19 - uses: actions/checkout@v4 20 20 - uses: actions/setup-go@v4 21 21 with: 22 - go-version: "~1.21" 22 + go-version-file: go.mod 23 23 check-latest: true 24 24 - run: make deps-backend deps-tools 25 25 - run: make lint-backend ··· 72 72 - uses: actions/checkout@v4 73 73 - uses: actions/setup-go@v4 74 74 with: 75 - go-version: "~1.21" 75 + go-version-file: go.mod 76 76 check-latest: true 77 77 - run: make deps-backend deps-tools 78 78 - run: make lint-go-windows lint-go-vet ··· 89 89 - uses: actions/checkout@v4 90 90 - uses: actions/setup-go@v4 91 91 with: 92 - go-version: "~1.21" 92 + go-version-file: go.mod 93 93 check-latest: true 94 94 - run: make deps-backend deps-tools 95 95 - run: make lint-go ··· 104 104 - uses: actions/checkout@v4 105 105 - uses: actions/setup-go@v4 106 106 with: 107 - go-version: "~1.21" 107 + go-version-file: go.mod 108 108 check-latest: true 109 109 - run: make deps-backend deps-tools 110 110 - run: make --always-make checks-backend # ensure the "go-licenses" make target runs ··· 132 132 - uses: actions/checkout@v4 133 133 - uses: actions/setup-go@v4 134 134 with: 135 - go-version: "~1.21" 135 + go-version-file: go.mod 136 136 check-latest: true 137 137 # no frontend build here as backend should be able to build 138 138 # even without any frontend files ··· 176 176 steps: 177 177 - uses: actions/checkout@v4 178 178 - uses: actions/setup-go@v4 179 + with: 180 + go-version-file: go.mod 181 + check-latest: true 179 182 - run: make lint-actions
+5 -5
.github/workflows/pull-db-tests.yml
··· 41 41 - uses: actions/checkout@v4 42 42 - uses: actions/setup-go@v4 43 43 with: 44 - go-version: "~1.21" 44 + go-version-file: go.mod 45 45 check-latest: true 46 46 - name: Add hosts to /etc/hosts 47 47 run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 pgsql ldap minio" | sudo tee -a /etc/hosts' ··· 66 66 - uses: actions/checkout@v4 67 67 - uses: actions/setup-go@v4 68 68 with: 69 - go-version: "~1.21" 69 + go-version-file: go.mod 70 70 check-latest: true 71 71 - run: make deps-backend 72 72 - run: make backend ··· 117 117 - uses: actions/checkout@v4 118 118 - uses: actions/setup-go@v4 119 119 with: 120 - go-version: "~1.21" 120 + go-version-file: go.mod 121 121 check-latest: true 122 122 - name: Add hosts to /etc/hosts 123 123 run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch meilisearch smtpimap" | sudo tee -a /etc/hosts' ··· 167 167 - uses: actions/checkout@v4 168 168 - uses: actions/setup-go@v4 169 169 with: 170 - go-version: "~1.21" 170 + go-version-file: go.mod 171 171 check-latest: true 172 172 - name: Add hosts to /etc/hosts 173 173 run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts' ··· 200 200 - uses: actions/checkout@v4 201 201 - uses: actions/setup-go@v4 202 202 with: 203 - go-version: "~1.21" 203 + go-version-file: go.mod 204 204 check-latest: true 205 205 - name: Add hosts to /etc/hosts 206 206 run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql" | sudo tee -a /etc/hosts'
+1 -1
.github/workflows/pull-e2e-tests.yml
··· 19 19 - uses: actions/checkout@v4 20 20 - uses: actions/setup-go@v4 21 21 with: 22 - go-version: "~1.21" 22 + go-version-file: go.mod 23 23 check-latest: true 24 24 - uses: actions/setup-node@v3 25 25 with:
+3 -3
.github/workflows/release-nightly.yml
··· 20 20 - run: git fetch --unshallow --quiet --tags --force 21 21 - uses: actions/setup-go@v4 22 22 with: 23 - go-version: "~1.21" 23 + go-version-file: go.mod 24 24 check-latest: true 25 25 - uses: actions/setup-node@v3 26 26 with: ··· 66 66 - run: git fetch --unshallow --quiet --tags --force 67 67 - uses: actions/setup-go@v4 68 68 with: 69 - go-version: "~1.21" 69 + go-version-file: go.mod 70 70 check-latest: true 71 71 - uses: docker/setup-qemu-action@v2 72 72 - uses: docker/setup-buildx-action@v2 ··· 103 103 - run: git fetch --unshallow --quiet --tags --force 104 104 - uses: actions/setup-go@v4 105 105 with: 106 - go-version: "~1.21" 106 + go-version-file: go.mod 107 107 check-latest: true 108 108 - uses: docker/setup-qemu-action@v2 109 109 - uses: docker/setup-buildx-action@v2
+1 -1
.github/workflows/release-tag-rc.yml
··· 19 19 - run: git fetch --unshallow --quiet --tags --force 20 20 - uses: actions/setup-go@v4 21 21 with: 22 - go-version: "~1.21" 22 + go-version-file: go.mod 23 23 check-latest: true 24 24 - uses: actions/setup-node@v3 25 25 with:
+1 -1
.github/workflows/release-tag-version.yml
··· 21 21 - run: git fetch --unshallow --quiet --tags --force 22 22 - uses: actions/setup-go@v4 23 23 with: 24 - go-version: "~1.21" 24 + go-version-file: go.mod 25 25 check-latest: true 26 26 - uses: actions/setup-node@v3 27 27 with: