-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathaction.yml
More file actions
47 lines (42 loc) · 1.57 KB
/
Copy pathaction.yml
File metadata and controls
47 lines (42 loc) · 1.57 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
name: "Set up testing dependencies"
description: "Set up GO, package dependencies and install-dependencies"
inputs:
scylla-version:
description: "Specifies Scylla version for test environment"
required: false
ip-family:
description: "Specifies IP family for test environment (IPV4/IPV6)"
required: false
tablets:
description: "Specifies if cluster should use tablets replication"
required: false
start-dev-env:
description: "Should this action run 'make start-dev-env'"
required: false
default: 'true'
ssl-enabled:
description: "Specifies if Scylla cluster should use ssl only configuration or not"
required: false
default: 'true'
runs:
using: "composite"
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: ./go.mod
cache-dependency-path: '**/go.sum'
- name: Restore dependencies
uses: actions/cache@v3
id: cache-dependencies
with:
path: ~/work/scylla-manager/scylla-manager/bin
key: ${{ runner.os }}-${{ hashFiles('~/work/scylla-manager/scylla-manager/install-dependencies.sh', '~/work/scylla-manager/scylla-manager/mod/go.sum') }}
- name: Install dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: ./install-dependencies.sh
shell: bash
- name: Start dev env
if: inputs.start-dev-env == 'true'
run: make start-dev-env SCYLLA_VERSION=${{ inputs.scylla-version }} IP_FAMILY=${{ inputs.ip-family }} TABLETS=${{ inputs.tablets }} SSL_ENABLED=${{ inputs.ssl-enabled }}
shell: bash