mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Lock go to 1.21 on CI (#26433)
To prevent unwanted surprises with new minor versions of go, lock the version to minor version using [semver tilde syntax](https://github.com/npm/node-semver#tilde-ranges-123-12-1). We were already getting 1.21.0 since yesterday, so use that version now as minimum.
This commit is contained in:
		
							
								
								
									
										12
									
								
								.github/workflows/pull-db-tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/pull-db-tests.yml
									
									
									
									
										vendored
									
									
								
							| @@ -41,7 +41,7 @@ jobs: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: ">=1.20" | ||||
|           go-version: "~1.21" | ||||
|           check-latest: true | ||||
|       - name: Add hosts to /etc/hosts | ||||
|         run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 pgsql ldap minio" | sudo tee -a /etc/hosts' | ||||
| @@ -66,7 +66,7 @@ jobs: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: ">=1.20" | ||||
|           go-version: "~1.21" | ||||
|           check-latest: true | ||||
|       - run: make deps-backend | ||||
|       - run: make backend | ||||
| @@ -131,7 +131,7 @@ jobs: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: ">=1.20" | ||||
|           go-version: "~1.21" | ||||
|           check-latest: true | ||||
|       - name: Add hosts to /etc/hosts | ||||
|         run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch meilisearch smtpimap" | sudo tee -a /etc/hosts' | ||||
| @@ -181,7 +181,7 @@ jobs: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: ">=1.20" | ||||
|           go-version: "~1.21" | ||||
|           check-latest: true | ||||
|       - name: Add hosts to /etc/hosts | ||||
|         run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts' | ||||
| @@ -213,7 +213,7 @@ jobs: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: ">=1.20" | ||||
|           go-version: "~1.21" | ||||
|           check-latest: true | ||||
|       - name: Add hosts to /etc/hosts | ||||
|         run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql8" | sudo tee -a /etc/hosts' | ||||
| @@ -244,7 +244,7 @@ jobs: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: ">=1.20" | ||||
|           go-version: "~1.21" | ||||
|           check-latest: true | ||||
|       - name: Add hosts to /etc/hosts | ||||
|         run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql" | sudo tee -a /etc/hosts' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user