feat: add shellcheck & shfmt github actions (#33)

* refactor: separate lint shfmt and shellcheck
* feat: add simple github action task
* fix: linting bash files according to shfmt
* feat: move main method dedicated shell file
* feat: update changelog entry
This commit is contained in:
Maciej Sypien 2024-09-14 23:49:03 +02:00 committed by Maciej Sypien
parent 1b97d625e6
commit 23bbbfcaee
No known key found for this signature in database
GPG key ID: 10BC01EDA6827DC8
5 changed files with 63 additions and 31 deletions

22
.github/workflows/github-actions.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: GitHub Actions
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
jobs:
lint-shellcheck:
runs-on: ubuntu-latest
steps:
- name: install shellcheck
run: sudo apt-get install -y shellcheck
- name: checkout repo
uses: actions/checkout@main
- name: lint files against shellcheck
run: make lint_shellcheck
lint-shfmt:
runs-on: ubuntu-latest
steps:
- name: install shfmt
run: sudo apt-get install -y shfmt
- name: checkout repo
uses: actions/checkout@main
- name: lint files against shfmt
run: make lint_shfmt