Refactor as a single command and add .shellkin argfile support
#22
Workflow file for this run
This file contains hidden or 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: Test | |
| on: | |
| pull_request: | |
| push: { branches: master } | |
| jobs: | |
| test: | |
| name: Run test suite | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install test dependencies | |
| run: sudo apt-get update && sudo apt-get install -y bats shellcheck | |
| - name: Run shellcheck tests | |
| run: shellcheck shellkin setup uninstall | |
| - name: Run Bats tests | |
| run: bats --recursive --print-output-on-failure test | |
| - name: Run Shellkin tests | |
| run: ./shellkin test | |
| ubuntu_setup: | |
| name: Setup on Ubuntu | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run setup | |
| run: | |
| ./setup | |
| command -v shellkin | |
| - name: Run uninstall | |
| run: | |
| ./uninstall | |
| ! command -v shellkin |