Error handling while running the Gluster commands #13
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 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/latest/download/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 |