chore: pin wazero main commit for now #243
Workflow file for this run
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
on: | |
pull_request: | |
workflow_dispatch: | |
name: Test | |
jobs: | |
check_get_extism: | |
name: Check get-extism.sh | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
rust: | |
- stable | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/extism-cli | |
- name: Install lib | |
run: | | |
sudo /bin/sh ./scripts/get-extism.sh -y -o /usr/local/bin | |
- name: Test CLI | |
run: | | |
echo "this is a test" | /usr/local/bin/extism call test/code.wasm count_vowels --stdin | |
install_latest_and_test: | |
name: Install & Test (git latest) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
rust: | |
- stable | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/extism-cli | |
- name: Install lib | |
if: ${{ matrix.os }} == "macos-latest" | |
run: | | |
sudo extism --github-token ${{ secrets.GITHUB_TOKEN }} lib install --version latest --verbose | |
- name: Install lib | |
if: ${{ matrix.os }} == "ubuntu-latest" | |
run: | | |
sudo extism --github-token ${{ secrets.GITHUB_TOKEN }} lib install --version latest --verbose | |
- name: Test CLI | |
run: | | |
echo "this is a test" | extism call test/code.wasm count_vowels --stdin | |
install_release_and_test: | |
name: Install & Test (release) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
rust: | |
- stable | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/extism-cli | |
- name: Install lib | |
if: ${{ matrix.os }} == "macos-latest" | |
run: | | |
sudo extism --github-token ${{ secrets.GITHUB_TOKEN }} lib install --verbose | |
- name: Install lib | |
if: ${{ matrix.os }} == "ubuntu-latest" | |
run: | | |
sudo extism --github-token ${{ secrets.GITHUB_TOKEN }} lib install --verbose | |
- name: Test CLI | |
run: | | |
echo "this is a test" | extism call test/code.wasm count_vowels --stdin | |
go_tests: | |
name: Go tests (CLI+dev) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
rust: | |
- stable | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
check-latest: true | |
- name: Test CLI | |
run: | | |
cd extism | |
go test -v -race | |
- name: Test dev | |
run: | | |
cd extism-dev | |
go test -v -race |