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