mirror of
https://github.com/redis/go-redis.git
synced 2025-04-16 09:23:06 +03:00
64 lines
1.3 KiB
YAML
64 lines
1.3 KiB
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
branches: [master, v9, v9.7]
|
|
pull_request:
|
|
branches: [master, v9, v9.7]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
name: build
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
go-version: [1.21.x, 1.22.x, 1.23.x]
|
|
|
|
steps:
|
|
- name: Set up ${{ matrix.go-version }}
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Test
|
|
run: make test
|
|
|
|
- name: Upload to Codecov
|
|
uses: codecov/codecov-action@v5
|
|
with:
|
|
files: coverage.txt
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
test-redis-ce:
|
|
name: test-redis-ce
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
redis-version:
|
|
- "8.0-M03" # 8.0 milestone 4
|
|
- "7.4.2" # should use redis stack 7.4
|
|
- "7.2.7" # should redis stack 7.2
|
|
go-version:
|
|
- "1.22.x"
|
|
- "1.23.x"
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run tests
|
|
uses: ./.github/actions/run-tests
|
|
with:
|
|
go-version: ${{matrix.go-version}}
|
|
redis-version: ${{ matrix.redis-version }}
|
|
|