feat/test: add log_trace, use get_log_level, improve log tests #13
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test-example: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/libextism | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install WASI SDK | |
run: | | |
uname -m | |
bash install-wasi-sdk.sh | |
echo '$WASI_SDK_PATH="'$(pwd)'"/wasi-sdk' >> $GITHUB_ENV | |
- name: Example | |
run: | | |
cd examples/count-vowels | |
TEST=$(make run) | |
echo $TEST | grep '"count": 4' | |
- name: Tests | |
if: matrix.os != 'macos-latest' | |
run: | | |
cd tests | |
make test |