Replace Travis CI with GitHub Actions

* Use GH Actions Matrices for multi-OS & multi-shell testing
* Drop helper script for installing zsh on Linux
    - Should be available by default on ubuntu-latest
This commit is contained in:
Jeff Byrnes
2023-07-16 15:57:02 -04:00
parent ee57debc69
commit c9045bd3e1
3 changed files with 33 additions and 50 deletions

33
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
test_shell:
- bash
- zsh
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test
uses: sudo-bot/action-shunit2@latest
env:
TEST_SHELLS: ${{ matrix.test_shell }}
with:
cli: ./run_tests.sh