test: add test for library functions #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: Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- windows-latest | |
- ubuntu-latest | |
- macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install IO::Pty | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get update -y && sudo apt-get install -y libio-pty-perl | |
- name: Run Tests | |
env: | |
TEST_OPTS: -v | |
MSYS: winsymlinks:nativestrict | |
run: make test | |
- name: Syntax checks | |
if: matrix.os == 'ubuntu-latest' | |
run: make lint |