mirror of
https://github.com/gofiber/storage.git
synced 2025-12-24 13:29:30 +08:00
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
40 lines
923 B
YAML
40 lines
923 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
paths:
|
|
- 'scylladb/**'
|
|
pull_request:
|
|
paths:
|
|
- 'scylladb/**'
|
|
|
|
name: "Tests ScyllaDb"
|
|
|
|
jobs:
|
|
Tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
go-version:
|
|
- 1.20.x
|
|
- 1.21.x
|
|
|
|
steps:
|
|
- name: Fetch Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run ScyllaDb
|
|
run: |
|
|
docker run --name scylladb -p 9042:9042 -p 19042:19042 -p 9160:9160 -p 10000:10000 -p 7000:7000 -p 7001:7001 -p 7199:7199 -p 9180:9180 -d scylladb/scylla:latest --broadcast-address 127.0.0.1 --listen-address 0.0.0.0 --broadcast-rpc-address 127.0.0.1
|
|
sleep 30 # Wait for ScyllaDb to initialize
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '${{ matrix.go-version }}'
|
|
|
|
- name: Run Test
|
|
run: cd ./scylladb && go test ./... -v -race
|