-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (31 loc) · 1.11 KB
/
capella_connection_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
name: test Couchbase Credential
on:
schedule:
- cron: '0 0 * * 1'
jobs:
test_credential:
runs-on: ubuntu-latest
name: Test that given env variable works
steps:
- run: wget https://github.com/couchbaselabs/couchbase-shell/releases/download/v0.75.1/cbsh-x86_64-unknown-linux-gnu.tar.gz
- run: tar -xvzf cbsh-x86_64-unknown-linux-gnu.tar.gz
- run: |
CONFIG=$(cat << EOF
version = 1
[[cluster]]
identifier = "local"
connstr = "$COUCHBASE_CONNECTION_STRING"
username = "$COUCHBASE_USERNAME"
password = "$COUCHBASE_PASSWORD"
EOF
)
echo "CONFIG<<EOF" >> $GITHUB_ENV
echo "$CONFIG" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- run: echo "$CONFIG" >> config
- run: ./cbsh --config-dir . -c cb-env
shell: bash
env:
COUCHBASE_CONNECTION_STRING: ${{ secrets.COUCHBASE_CONNECTION_STRING }}
COUCHBASE_USERNAME: ${{ secrets.COUCHBASE_USERNAME }}
COUCHBASE_PASSWORD: ${{ secrets.COUCHBASE_PASSWORD }}