Run GitHub Actions workflow on Linux and macOS (#26) #78
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: "bashdb CI" | |
on: | |
push: | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
name: "Run Tests on ${{ matrix.os }}" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies for Linux | |
if: runner.os == 'Linux' | |
shell: bash | |
run: |+ | |
sudo apt -y update | |
sudo apt -y install autoconf automake texinfo | |
- name: Install dependencies for macOS | |
if: runner.os == 'macOS' | |
shell: bash | |
run: |+ | |
brew update | |
brew install bash | |
brew install autoconf automake texinfo | |
# Not installing pygments, because apparently 'osascript' executed during bashdb's init is blocking | |
# if there's not user logged in. | |
- name: Configure | |
shell: bash | |
run: bash ./autogen.sh | |
- name: Test | |
shell: bash | |
env: | |
VERBOSE: 1 | |
run: make -e -j3 check |