Tests Memcache #3271
This file contains hidden or 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
| 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 |