upgrade github action tests template
This commit is contained in:
		
							parent
							
								
									0f105ec163
								
							
						
					
					
						commit
						49d94c173c
					
				
							
								
								
									
										14
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							| @ -16,7 +16,7 @@ jobs: | |||||||
|   sqlite: |   sqlite: | ||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         go: ['1.21', '1.20', '1.19'] |         go: ['1.22', '1.21', '1.20'] | ||||||
|         platform: [ubuntu-latest] # can not run in windows OS |         platform: [ubuntu-latest] # can not run in windows OS | ||||||
|     runs-on: ${{ matrix.platform }} |     runs-on: ${{ matrix.platform }} | ||||||
| 
 | 
 | ||||||
| @ -41,8 +41,8 @@ jobs: | |||||||
|   mysql: |   mysql: | ||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         dbversion: ['mysql:latest', 'mysql:5.7'] |         dbversion: ['mysql/mysql-server:latest', 'mysql:5.7'] | ||||||
|         go: ['1.21', '1.20', '1.19'] |         go: ['1.22', '1.21', '1.20'] | ||||||
|         platform: [ubuntu-latest] |         platform: [ubuntu-latest] | ||||||
|     runs-on: ${{ matrix.platform }} |     runs-on: ${{ matrix.platform }} | ||||||
| 
 | 
 | ||||||
| @ -85,7 +85,7 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         dbversion: [ 'mariadb:latest' ] |         dbversion: [ 'mariadb:latest' ] | ||||||
|         go: ['1.21', '1.20', '1.19'] |         go: ['1.22', '1.21', '1.20'] | ||||||
|         platform: [ ubuntu-latest ] |         platform: [ ubuntu-latest ] | ||||||
|     runs-on: ${{ matrix.platform }} |     runs-on: ${{ matrix.platform }} | ||||||
| 
 | 
 | ||||||
| @ -128,7 +128,7 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         dbversion: ['postgres:latest', 'postgres:13', 'postgres:12', 'postgres:11', 'postgres:10'] |         dbversion: ['postgres:latest', 'postgres:13', 'postgres:12', 'postgres:11', 'postgres:10'] | ||||||
|         go: ['1.21', '1.20', '1.19'] |         go: ['1.22', '1.21', '1.20'] | ||||||
|         platform: [ubuntu-latest] # can not run in macOS and Windows |         platform: [ubuntu-latest] # can not run in macOS and Windows | ||||||
|     runs-on: ${{ matrix.platform }} |     runs-on: ${{ matrix.platform }} | ||||||
| 
 | 
 | ||||||
| @ -170,7 +170,7 @@ jobs: | |||||||
|   sqlserver: |   sqlserver: | ||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         go: ['1.21', '1.20', '1.19'] |         go: ['1.22', '1.21', '1.20'] | ||||||
|         platform: [ubuntu-latest] # can not run test in macOS and windows |         platform: [ubuntu-latest] # can not run test in macOS and windows | ||||||
|     runs-on: ${{ matrix.platform }} |     runs-on: ${{ matrix.platform }} | ||||||
| 
 | 
 | ||||||
| @ -214,7 +214,7 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         dbversion: [ 'v6.5.0' ] |         dbversion: [ 'v6.5.0' ] | ||||||
|         go: ['1.21', '1.20', '1.19'] |         go: ['1.22', '1.21', '1.20'] | ||||||
|         platform: [ ubuntu-latest ] |         platform: [ ubuntu-latest ] | ||||||
|     runs-on: ${{ matrix.platform }} |     runs-on: ${{ matrix.platform }} | ||||||
| 
 | 
 | ||||||
|  | |||||||
							
								
								
									
										18
									
								
								tests/go.mod
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								tests/go.mod
									
									
									
									
									
								
							| @ -7,11 +7,11 @@ require ( | |||||||
| 	github.com/jinzhu/now v1.1.5 | 	github.com/jinzhu/now v1.1.5 | ||||||
| 	github.com/lib/pq v1.10.9 | 	github.com/lib/pq v1.10.9 | ||||||
| 	github.com/stretchr/testify v1.9.0 | 	github.com/stretchr/testify v1.9.0 | ||||||
| 	gorm.io/driver/mysql v1.5.6 | 	gorm.io/driver/mysql v1.5.7 | ||||||
| 	gorm.io/driver/postgres v1.5.7 | 	gorm.io/driver/postgres v1.5.9 | ||||||
| 	gorm.io/driver/sqlite v1.5.5 | 	gorm.io/driver/sqlite v1.5.6 | ||||||
| 	gorm.io/driver/sqlserver v1.5.3 | 	gorm.io/driver/sqlserver v1.5.3 | ||||||
| 	gorm.io/gorm v1.25.9 | 	gorm.io/gorm v1.25.10 | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| require ( | require ( | ||||||
| @ -21,16 +21,16 @@ require ( | |||||||
| 	github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect | 	github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect | ||||||
| 	github.com/golang-sql/sqlexp v0.1.0 // indirect | 	github.com/golang-sql/sqlexp v0.1.0 // indirect | ||||||
| 	github.com/jackc/pgpassfile v1.0.0 // indirect | 	github.com/jackc/pgpassfile v1.0.0 // indirect | ||||||
| 	github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 // indirect | 	github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect | ||||||
| 	github.com/jackc/pgx/v5 v5.5.5 // indirect | 	github.com/jackc/pgx/v5 v5.6.0 // indirect | ||||||
| 	github.com/jinzhu/inflection v1.0.0 // indirect | 	github.com/jinzhu/inflection v1.0.0 // indirect | ||||||
| 	github.com/kr/text v0.2.0 // indirect | 	github.com/kr/text v0.2.0 // indirect | ||||||
| 	github.com/mattn/go-sqlite3 v1.14.22 // indirect | 	github.com/mattn/go-sqlite3 v1.14.22 // indirect | ||||||
| 	github.com/microsoft/go-mssqldb v1.7.1 // indirect | 	github.com/microsoft/go-mssqldb v1.7.2 // indirect | ||||||
| 	github.com/pmezard/go-difflib v1.0.0 // indirect | 	github.com/pmezard/go-difflib v1.0.0 // indirect | ||||||
| 	github.com/rogpeppe/go-internal v1.12.0 // indirect | 	github.com/rogpeppe/go-internal v1.12.0 // indirect | ||||||
| 	golang.org/x/crypto v0.22.0 // indirect | 	golang.org/x/crypto v0.24.0 // indirect | ||||||
| 	golang.org/x/text v0.14.0 // indirect | 	golang.org/x/text v0.16.0 // indirect | ||||||
| 	gopkg.in/yaml.v3 v3.0.1 // indirect | 	gopkg.in/yaml.v3 v3.0.1 // indirect | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jinzhu
						Jinzhu