Skip to content

Commit

Permalink
fix(ci): fix ci
Browse files Browse the repository at this point in the history
fix ci
  • Loading branch information
XdpCs committed Aug 6, 2024
1 parent 68069c9 commit 93ae2e9
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,11 @@ jobs:
with:
fetch-depth: 0

- name: Run ORM tests on postgres
env:
# GOPATH: /home/runner/go
ORM_DRIVER: postgres
ORM_SOURCE: host=localhost port=${{ job.services.postgres.ports[5432] }} user=postgres password=postgres dbname=orm_test sslmode=disable
run: |
go test -coverprofile=coverage_postgres.txt -covermode=atomic $(go list ./... | grep client/orm)
- name: "run go build"
run: go build -v ./...

- name: Run tests on mysql
env:
# GOPATH: /home/runner/go
ORM_DRIVER: mysql
ORM_SOURCE: root:root@/orm_test?charset=utf8
run: |
sudo systemctl start mysql
mysql -u root -proot -e 'create database orm_test;'
go test -coverprofile=coverage.txt -covermode=atomic ./...
- name: "run go test and out codecov"
run: go test -v ./... -race -coverprofile=coverage.out -covermode=atomic

- name: Upload codecov
env:
Expand Down

0 comments on commit 93ae2e9

Please sign in to comment.