-
Notifications
You must be signed in to change notification settings - Fork 1.1k
56 lines (52 loc) · 1.74 KB
/
Copy pathintegration.yml
File metadata and controls
56 lines (52 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Continuous Integration
run-name: "Continuous Integration${{ github.event.inputs.client_libs_test_image_tag != '' && format(' using image: {0}', github.event.inputs.client_libs_test_image_tag) || '' }}"
on:
push:
paths-ignore:
- 'docs/**'
- '**/*.md'
- '**/*.rst'
branches:
- main
- '[0-9].*'
- 'feature/*'
pull_request:
branches:
- main
- '[0-9].*'
- 'feature/*'
schedule:
- cron: '0 1 * * *' # nightly build
workflow_dispatch:
inputs:
client_libs_test_image_tag:
description: 'Custom client libs test image tag to use instead of redis_version'
required: false
default: ''
permissions:
contents: read
jobs:
build:
name: Build and Test (Redis ${{ matrix.redis_version }})
if: github.event.inputs.client_libs_test_image_tag == ''
strategy:
fail-fast: false
matrix:
# Full version set runs only on the nightly schedule; PRs and pushes
# test a reduced set (7.2 LTS, 7.4 LTS, 8.2 LTS, 8.8, 8.10 current stable) to keep CI fast.
redis_version: ${{ fromJSON(github.event_name == 'schedule'
&& '["8.10", "8.8", "8.6", "8.4", "8.2", "7.4", "7.2"]'
|| '["8.10", "8.8", "8.2", "7.4", "7.2"]') }}
uses: ./.github/workflows/run-tests.yml
with:
redis_version: ${{ matrix.redis_version }}
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
build_using_custom_image:
name: Build and Test using custom image
if: github.event.inputs.client_libs_test_image_tag != ''
uses: ./.github/workflows/run-tests.yml
with:
client_libs_test_image_tag: ${{ github.event.inputs.client_libs_test_image_tag }}
skip_unit_tests: true
upload_coverage: false