diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 57da191..2603343 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -29,6 +29,7 @@ jobs: env: CASSANDRA_SEEDS: cassandra-primary CASSANDRA_KEYSPACE: hord + SLEEP_TIMER: 15 ports: - 7000 - 7001 @@ -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: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2fae8ec..b108eeb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -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