Skip to content

Error handling while running the Gluster commands #17

Error handling while running the Gluster commands

Error handling while running the Gluster commands #17

Workflow file for this run

name: Run on every PR
on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
- 'extras/**'
- '**.md'
- '**.adoc'
jobs:
# TODO: Add unit test as well here
tests:
name: Gluster Metrics Exporter Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Crystal
run: |
curl -fsSL https://crystal-lang.org/install.sh | sudo bash
- name: Format Check
run: make fmt-check
- name: Lint
run: make lint
- name: Install Binnacle
run: |
curl -L https://github.com/kadalu/binnacle/releases/download/0.6.1/binnacle -o binnacle
chmod +x ./binnacle
sudo mv ./binnacle /usr/local/bin/binnacle
binnacle --version
- name: Build Storage node container
run: |
cd tests && ./build-container.sh
- name: Setup Test environment
run: binnacle -v tests/setup.t
- name: Build and Install Gluster Metrics Exporter to nodes/containers
run: binnacle -v tests/install.t
- name: Run all Tests
run: binnacle -v tests/all