Adjust tests wrt new features/fixes #14
This file contains hidden or 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: [kotlin] | |
| pull_request: | |
| branches: [kotlin] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install Rust | |
| run: rustup update stable --no-self-update && rustup default stable | |
| - name: Build | |
| run: cargo build | |
| - name: Install test dependencies | |
| run: cargo install --locked wasmtime-cli --root tools | |
| - name: Codegen Tests | |
| run: cargo run test --runner tools/bin/wasmtime --languages kotlin --artifacts target/artifacts tests/codegen | |
| notify-downstream: | |
| needs: build-and-test | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: peter-evans/repository-dispatch@v3 | |
| with: | |
| token: ${{ secrets.CROSS_REPO_PAT }} | |
| repository: Kotlin/hyperlight-wasm-http-example | |
| event-type: upstream-changed | |
| client-payload: '{"repo": "${{ github.repository }}", "sha": "${{ github.sha }}"}' |