Added ability to collect logs from server. #69
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
platform: [darwin, linux, windows] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
- name: Install dependencies | |
run: go get . | |
- name: Build Binary | |
run: GOOS=${{ matrix.platform }} GOARCH=amd64 go build -o cbdinocluster-${{ matrix.platform }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: cbdinocluster-${{ matrix.platform }} | |
path: cbdinocluster-${{ matrix.platform }} | |
test: | |
name: Integration Test | |
needs: [build] | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: cbdinocluster-linux | |
- run: | | |
chmod +x cbdinocluster-linux | |
./cbdinocluster-linux init --auto | |
- name: Setup Cluster | |
run: | | |
CBDC_ID=$(./cbdinocluster-linux allocate simple:7.0.0) | |
echo "CBDC_ID=$CBDC_ID" >> "$GITHUB_ENV" | |
- name: Run Tests | |
timeout-minutes: 10 | |
run: | | |
./cbdinocluster-linux connstr $CBDC_ID | |
CBDC_MGMT=$(./cbdinocluster-linux mgmt $CBDC_ID) | |
echo $CBDC_MGMT | |
curl $CBDC_MGMT | |
- name: Cleanup Cluster | |
if: always() | |
run: | | |
./cbdinocluster-linux rm $CBDC_ID |