Full rewrite

This commit is contained in:
Matthias Morin 2021-03-08 18:13:24 +01:00
parent cafcc389ce
commit 81cee16d76
15 changed files with 1233 additions and 131 deletions

33
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View file

@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Call script with parameters ...
2. Type ...
3. Wait for ... seconds
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. MacOS]
- make version (make --version)
- Script version
- copy/paste output
**Additional context**
Add any other context about the problem here.

View file

@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

33
.github/workflows/bash_unit.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: bash_unit CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ubuntu:
runs-on: ubuntu-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
steps:
- uses: actions/checkout@v2
- name: install Ubuntu dependencies with sudo apt install -y
run: sudo apt install -y gawk
- name: Unit testing with bash_unit
run: ./run_tests.sh
macos:
runs-on: macos-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]') && contains(toJSON(github.event.commits.*.message), '[macos]')"
steps:
- uses: actions/checkout@v2
- name: install MacOS dependencies with brew install
run: brew install gawk
- name: Unit testing with bash_unit
run: ./run_tests.sh

17
.github/workflows/shellcheck.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: Shellcheck CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
shellcheck:
runs-on: ubuntu-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
steps:
- uses: actions/checkout@v2
- name: Check for code quality errors
run: ./run_linter.sh