Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ test_details = ["test", "--target", "aarch64-apple-darwin"]
[build]
target = "wasm32-wasip1"

# Viceroy runs from crate directory, use wrapper to cd to repo root first
[target.'cfg(all(target_arch = "wasm32"))']
runner = "viceroy run -C ../../fastly.toml -- "
runner = ["sh", "-c", "cd ../.. && viceroy run -C fastly.toml -- \"$1\"", "--"]
7 changes: 5 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ jobs:
- name: Run cargo fmt
uses: actions-rust-lang/rustfmt@v1

- name: Run cargo clipply
run: cargo clippy --all-targets --all-features
- name: Run cargo clippy (wasm - default crates)
run: cargo clippy --target wasm32-wasip1

- name: Run cargo clippy (native - cli)
run: cargo clippy -p cli --target x86_64-unknown-linux-gnu

format-typescript:
runs-on: ubuntu-latest
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,18 @@ jobs:
- name: Setup Viceroy (from main since 0.14.3 is broken)
run: cargo install --git https://github.com/fastly/Viceroy viceroy

- name: Run tests
- name: Build CLI
run: cargo build -p cli --target x86_64-unknown-linux-gnu

- name: Generate local config store
run: ./target/x86_64-unknown-linux-gnu/debug/tscli config local -f trusted-server.toml

- name: Run tests (wasm - default crates)
run: cargo test

- name: Run tests (native - cli)
run: cargo test -p cli --target x86_64-unknown-linux-gnu

test-typescript:
name: vitest
runs-on: ubuntu-latest
Expand Down
Loading