No description
  • Go 72.8%
  • Shell 27.2%
Find a file
Jan Harrie 6c72857a00
Merge pull request #1 from hashicorp/tsccr-auto-pinning/trusted/2023-09-29
SEC-090: Automated trusted workflow pinning (2023-09-29)
2023-09-29 09:16:20 +02:00
.github Result of tsccr-helper -log-level=info -pin-all-workflows . 2023-09-29 07:12:09 +00:00
.gitignore Add docker-compose to run tests locally 2020-07-10 21:57:28 +08:00
db.go Update README 2020-12-14 10:35:42 +08:00
docker-compose.yml Update test script, close #494 2022-10-09 16:10:38 +08:00
go.mod Update test script, close #494 2022-10-09 16:10:38 +08:00
License Add MIT License 2021-05-06 15:54:38 +08:00
main.go revise for Go 1.16 2021-05-02 18:53:19 -07:00
main_test.go Allow configure test drivers 2020-06-24 22:42:35 +08:00
models.go Update README 2020-06-24 12:09:43 +08:00
README.md Update test script, close #494 2022-10-09 16:10:38 +08:00
test.sh Update test script, close #494 2022-10-09 16:10:38 +08:00

GORM Playground

GORM Playground can be used to play GORM and reports issues, if you encounter a bug in GORM, please report it at https://github.com/go-gorm/gorm/issues with the Playground Pull Request's link

test status

Quick Start

1. Fork this repo
2. Clone the forked repo to your local
3. Install docker-compose

https://docs.docker.com/compose/install/

4. Run tests with lastest GORM and all drivers
# run tests (retry if failed due to preparing the testing database)
./test.sh

# Run tests with cached GORM and latest drivers
GORM_ENABLE_CACHE=true ./test.sh

# Run tests with specfied database
GORM_DIALECT=mysql go test
5. Modify tests and make it fail

Advanced Usage

We are using the following configuration run your code (GORM's latest master branch, latest database drivers: sqlite, mysql, postgres, sqlserver), you could change the configuration in file main_test.go

// GORM_REPO: https://github.com/go-gorm/gorm.git
// GORM_BRANCH: master
// TEST_DRIVERS: sqlite, mysql, postgres, sqlserver

We have prepared some structs with relationships in https://github.com/go-gorm/playground/blob/master/models.go that you can use for your tests

Happy Hacking!