Skip to content

ci: try separate dirs #49

ci: try separate dirs

ci: try separate dirs #49

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test-example:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
rust:
- stable
steps:
- uses: actions/checkout@v3
path: ./go-pdk

Check failure on line 15 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 15, Col: 9): Unexpected value 'path'
- uses: ./.github/actions/libextism
- name: Install Go
uses: actions/setup-go@v3
with:
cache: true
go-version: '1.20'
- name: Install TinyGo
uses: acifani/[email protected]
with:
tinygo-version: 0.28.1
binaryen-version: "110"
- name: Compile example
run: |
cd go-pdk
pushd example
go mod download
popd
make -B example
- name: Test example
run: |
cd go-pdk
# --wasi is needed as there is currently some issue compiling Go PDK plugins without wasi
TEST=$(extism call example/example.wasm --wasi --input "this is a test" --set-config='{"thing": "1", "a": "b"}' count_vowels)
echo $TEST | grep '"count": 4'
echo $TEST | grep '"config": "1"'
echo $TEST | grep '"a": "this is var a"'
extism call example/http.wasm --wasi http_get --allow-host "jsonplaceholder.typicode.com" | grep '"userId": 1'