Skip to content

Commit

Permalink
Adding Mock Driver to test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
madflojo committed May 6, 2023
1 parent 5266c6e commit 046c000
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/benchmarks.yml
Expand Up @@ -29,6 +29,7 @@ jobs:
env:
CASSANDRA_SEEDS: cassandra-primary
CASSANDRA_KEYSPACE: hord
SLEEP_TIMER: 15
ports:
- 7000
- 7001
Expand All @@ -43,7 +44,7 @@ jobs:
go-version: '1.19'
- name: Execute Tests
run: |
sleep 180
sleep 60
go test -run=Benchmark -bench "BenchmarkDrivers/Bench_Cassandra" ./...
redis:
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/tests.yml
Expand Up @@ -46,7 +46,7 @@ jobs:
run: go install github.com/mattn/goveralls@latest
- name: Execute Tests
run: |
sleep 180
sleep 60
go test -v -race -covermode=atomic -coverprofile=coverage.out ./drivers/cassandra
- name: Update Coveralls
env:
Expand Down Expand Up @@ -80,3 +80,20 @@ jobs:
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=coverage.out -service=github

mock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.19'
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Execute Tests
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./drivers/mock
- name: Update Coveralls
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=coverage.out -service=github

0 comments on commit 046c000

Please sign in to comment.