mirror of https://github.com/gogs/gogs.git
ci: run Go tests with `-shuffle=on` (#7370)
parent
361a681225
commit
689e71ff2c
|
@ -68,7 +68,7 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Run tests with coverage
|
- name: Run tests with coverage
|
||||||
run: go test -v -race -coverprofile=coverage -covermode=atomic ./...
|
run: go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic ./...
|
||||||
- name: Upload coverage report to Codecov
|
- name: Upload coverage report to Codecov
|
||||||
uses: codecov/codecov-action@v1.5.0
|
uses: codecov/codecov-action@v1.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -108,7 +108,7 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Run tests with coverage
|
- name: Run tests with coverage
|
||||||
run: go test -v -coverprofile=coverage -covermode=atomic ./...
|
run: go test -shuffle=on -v -coverprofile=coverage -covermode=atomic ./...
|
||||||
- name: Upload coverage report to Codecov
|
- name: Upload coverage report to Codecov
|
||||||
uses: codecov/codecov-action@v1.5.0
|
uses: codecov/codecov-action@v1.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -158,7 +158,7 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Run tests with coverage
|
- name: Run tests with coverage
|
||||||
run: go test -v -race -coverprofile=coverage -covermode=atomic ./internal/db/...
|
run: go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic ./internal/db/...
|
||||||
env:
|
env:
|
||||||
GOGS_DATABASE_TYPE: postgres
|
GOGS_DATABASE_TYPE: postgres
|
||||||
PGPORT: 5432
|
PGPORT: 5432
|
||||||
|
@ -184,7 +184,7 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Run tests with coverage
|
- name: Run tests with coverage
|
||||||
run: go test -v -race -coverprofile=coverage -covermode=atomic ./internal/db/...
|
run: go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic ./internal/db/...
|
||||||
env:
|
env:
|
||||||
GOGS_DATABASE_TYPE: mysql
|
GOGS_DATABASE_TYPE: mysql
|
||||||
MYSQL_USER: root
|
MYSQL_USER: root
|
||||||
|
@ -207,6 +207,6 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Run tests with coverage
|
- name: Run tests with coverage
|
||||||
run: go test -v -race -parallel=1 -coverprofile=coverage -covermode=atomic ./internal/db/...
|
run: go test -shuffle=on -v -race -parallel=1 -coverprofile=coverage -covermode=atomic ./internal/db/...
|
||||||
env:
|
env:
|
||||||
GOGS_DATABASE_TYPE: sqlite
|
GOGS_DATABASE_TYPE: sqlite
|
||||||
|
|
Loading…
Reference in New Issue