Add Golang v1.15
This commit is contained in:
		
							parent
							
								
									ebdb4edda8
								
							
						
					
					
						commit
						84dbb36d3b
					
				
							
								
								
									
										10
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							| @ -13,7 +13,7 @@ jobs: | ||||
|   sqlite: | ||||
|     strategy: | ||||
|       matrix: | ||||
|         go: ['1.14', '1.13'] | ||||
|         go: ['1.15', '1.14', '1.13'] | ||||
|         platform: [ubuntu-latest, macos-latest] # can not run in windows OS | ||||
|     runs-on: ${{ matrix.platform }} | ||||
| 
 | ||||
| @ -38,7 +38,7 @@ jobs: | ||||
|   sqlite_windows: | ||||
|     strategy: | ||||
|       matrix: | ||||
|         go: ['1.14', '1.13'] | ||||
|         go: ['1.15', '1.14', '1.13'] | ||||
|         platform: [windows-latest] | ||||
|     runs-on: ${{ matrix.platform }} | ||||
| 
 | ||||
| @ -64,7 +64,7 @@ jobs: | ||||
|     strategy: | ||||
|       matrix: | ||||
|         dbversion: ['mysql:latest', 'mysql:5.7', 'mysql:5.6', 'mariadb:latest'] | ||||
|         go: ['1.14', '1.13'] | ||||
|         go: ['1.15', '1.14', '1.13'] | ||||
|         platform: [ubuntu-latest] | ||||
|     runs-on: ${{ matrix.platform }} | ||||
| 
 | ||||
| @ -108,7 +108,7 @@ jobs: | ||||
|     strategy: | ||||
|       matrix: | ||||
|         dbversion: ['postgres:latest', 'postgres:11', 'postgres:10'] | ||||
|         go: ['1.14', '1.13'] | ||||
|         go: ['1.15', '1.14', '1.13'] | ||||
|         platform: [ubuntu-latest] # can not run in macOS and widnowsOS | ||||
|     runs-on: ${{ matrix.platform }} | ||||
| 
 | ||||
| @ -150,7 +150,7 @@ jobs: | ||||
|   sqlserver: | ||||
|     strategy: | ||||
|       matrix: | ||||
|         go: ['1.14', '1.13'] | ||||
|         go: ['1.15', '1.14', '1.13'] | ||||
|         platform: [ubuntu-latest] # can not run test in macOS and windows | ||||
|     runs-on: ${{ matrix.platform }} | ||||
| 
 | ||||
|  | ||||
| @ -10,7 +10,7 @@ func TestDefaultValue(t *testing.T) { | ||||
| 	type Harumph struct { | ||||
| 		gorm.Model | ||||
| 		Email   string `gorm:"not null;index:,unique"` | ||||
| 		Name    string `gorm:"not null;default:'foo'"` | ||||
| 		Name    string `gorm:"not null;default:foo"` | ||||
| 		Name2   string `gorm:"size:233;not null;default:'foo'"` | ||||
| 		Name3   string `gorm:"size:233;not null;default:''"` | ||||
| 		Age     int    `gorm:"default:18"` | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jinzhu
						Jinzhu