-
Notifications
You must be signed in to change notification settings - Fork 1.1k
44 lines (37 loc) · 1010 Bytes
/
yb-ctl-test.yml
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
name: yb-ctl-test
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
paths:
- '**/yb-ctl*'
- '!docs/**'
pull_request:
branches:
- master
paths:
- '**/yb-ctl*'
- '!docs/**'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
yb-ctl-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-18.04 ]
python-version: [ 2.7, 3.8 ]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v2
- name: Run yb-ctl-test
run: |
set -x
tmpdir=$(mktemp -d)
cp -r scripts/installation "${tmpdir}/"
cd "${tmpdir}/installation"
test/yb-ctl-test.sh