Skip to content

Tests Memcache

Tests Memcache #3271

Workflow file for this run

on:
schedule:
# daily full sweep; the push trigger only covers the changed module
- cron: '0 10 * * *'
push:
branches:
- master
- main
paths:
- 'memcache/**'
- '.github/workflows/test-memcache.yml'
pull_request:
paths:
- 'memcache/**'
- '.github/workflows/test-memcache.yml'
workflow_dispatch:
name: "Tests Memcache"
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
Tests:
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30
strategy:
matrix:
go-version:
- 1.26.x
- 1.27.x
steps:
- name: Fetch Repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: '${{ matrix.go-version }}'
check-latest: true
cache-dependency-path: memcache/go.sum
- name: Run Test
env:
TEST_MEMCACHED_IMAGE: "public.ecr.aws/docker/library/memcached:latest"
uses: gofiber/.github/.github/actions/gotestsum@main
with:
working-directory: ./memcache
packages: ./...
rerun-fails: '2'
args: -race -count=1