Skip to content

Commit 8867c3e

Browse files
committed
Update README
1 parent bd32042 commit 8867c3e

File tree

5 files changed

+6
-29
lines changed

5 files changed

+6
-29
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,6 @@ jobs:
3535
- name: run sqlite
3636
run: GORM_DIALECT=sqlite ./test.sh
3737

38-
sqlite_windows:
39-
strategy:
40-
matrix:
41-
go: ['1.14', '1.13']
42-
platform: [windows-latest]
43-
runs-on: ${{ matrix.platform }}
44-
45-
steps:
46-
- name: Set up Go 1.x
47-
uses: actions/setup-go@v2
48-
with:
49-
go-version: ${{ matrix.go }}
50-
51-
- name: Check out code into the Go module directory
52-
uses: actions/checkout@v2
53-
54-
- name: go mod pakcage cache
55-
uses: actions/cache@v2
56-
with:
57-
path: ~/go/pkg/mod
58-
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('tests/go.mod') }}
59-
60-
- name: run sqlite
61-
run: cd tests && set GORM_DIALECT=sqlite && go test $race -count=1 -v ./... #run the line in widnows's CMD, default GORM_DIALECT is sqlite
62-
6338
mysql:
6439
strategy:
6540
matrix:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ GORM PlayGround can be used to play GORM and reports issues
44

55
### Usage
66

7-
Modify [https://github.com/go-gorm/playground/blob/master/main_test.go](https://github.com/go-gorm/playground/blob/master/main_test.go) and create pull report, your code will be run automatically with Github Action
7+
Modify [https://github.com/go-gorm/playground/blob/master/main_test.go](https://github.com/go-gorm/playground/blob/master/main_test.go) and create pull report, your code will runs with sqlite, mysql, postgres and sqlserver with the help of Github Action
88

99
If you encounter a bug in GORM, please report it at [https://github.com/go-gorm/gorm/issues](https://github.com/go-gorm/gorm/issues) with the PlayGround Pull Request's link
1010

@@ -15,6 +15,8 @@ Your code will run with GORM's lastest master branch, if you want to use a diffe
1515
// GORM_BRANCH: master
1616
```
1717

18+
BTW, we have prepared some structs with relationships in [https://github.com/go-gorm/playground/blob/master/models.go](https://github.com/go-gorm/playground/blob/master/models.go) that you may interested to use
19+
1820
Don't forgot to close your PR after finish play! ;)
1921

2022
## Happy Hacking!

db_test.go renamed to db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package main_test
1+
package main
22

33
import (
44
"log"

main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package main_test
1+
package main
22

33
import (
44
"testing"

model_test.go renamed to models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package main_test
1+
package main
22

33
import (
44
"database/sql"

0 commit comments

Comments
 (0)