This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
Bump goreleaser/goreleaser-action from 4 to 5 #459
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2e Redis tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: '0 0 * * 0' # At 00:00 every Sunday | |
concurrency: e2e-redis | |
jobs: | |
e2e: | |
runs-on: ubuntu-latest | |
container: | |
image: golang:1.19 | |
services: | |
redis: | |
image: redis/redis-stack-server:latest | |
ports: | |
- 6379:6379 | |
env: | |
REDIS_ARGS: "--appendonly yes --appendfsync always --rdbcompression yes" | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19.x | |
- name: Go caches | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ github.job }}-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ github.job }}-${{ runner.os }}-go- | |
- name: Launch e2e tests | |
run: go test --count 1 ./test/e2e/... -tags e2e --redis-address redis:6379 |