Skip to content

Commit 4b82f3f

Browse files
committed
feat: add integration tests
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
1 parent 7de2cbf commit 4b82f3f

10 files changed

Lines changed: 2292 additions & 185 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
lint:
10+
name: Lint
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
- run: rustup update stable --no-self-update && rustup default stable
15+
- run: rustup component add clippy
16+
- run: cargo clippy --all-targets --workspace -- -D warnings
17+
18+
format:
19+
name: Format
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v6
23+
- run: rustup update stable --no-self-update && rustup default stable
24+
- run: cargo fmt --all -- --check
25+
26+
test:
27+
name: Test
28+
runs-on: ${{ matrix.os }}
29+
strategy:
30+
matrix:
31+
os: [ubuntu-latest, macos-latest, windows-latest]
32+
steps:
33+
- uses: actions/checkout@v6
34+
- uses: actions/setup-go@v6
35+
with:
36+
go-version: 'stable'
37+
- uses: bytecodealliance/actions/wasmtime/setup@v1
38+
- run: rustup update stable --no-self-update && rustup default stable
39+
- run: cargo test --manifest-path tests/Cargo.toml

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
11
target
2+
go.mod
3+
*.wasm
4+
wasi_*
5+
wit_*
6+
.crates.toml
7+
.crates2.json
8+
go-*-bootstrap*
9+
# examples/wasip2 stub
10+
export_wasi_http_handler/wit_bindings.go
11+
# examples/wasip3 stub
12+
export_wasi_http_incoming_handler/wit_bindings.go

0 commit comments

Comments
 (0)