Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
use call_actor callback for better reusability of library (#207)
Browse files Browse the repository at this point in the history
* use call_actor callback for better reusability of library

Signed-off-by: stevelr <[email protected]>

* allow overflow settings

Signed-off-by: stevelr <[email protected]>

* use latest codegen branch

Signed-off-by: stevelr <[email protected]>

* fix unit test to handle content max, use latest wasmbus-rpc (draft pr)

Signed-off-by: stevelr <[email protected]>

* use git rev for wasmcloud-test-util dependency

Signed-off-by: stevelr <[email protected]>

* bump default max content len to 100MB and absolute max to 1GB

Signed-off-by: stevelr <[email protected]>

* bump deps

Signed-off-by: stevelr <[email protected]>

* use branch name in wasmbus-rpc dependency (still waiting on pr merge)

Signed-off-by: stevelr <[email protected]>

* use smithy-bindgen and latest wasmcloud-test-util

Signed-off-by: stevelr <[email protected]>

* Removed codegen.toml and build.rs in favor of smithy-bindgen

* update deps

Signed-off-by: stevelr <[email protected]>

* document max_content_len setting

Signed-off-by: stevelr <[email protected]>

* enable tracing for call_actor

Signed-off-by: stevelr <[email protected]>

* use released wasmcloud_util_test library

Signed-off-by: stevelr <[email protected]>

* remove redundant async/await, add GH workflow for releasing library

Signed-off-by: stevelr <[email protected]>

* remove c flag in nc command in 'make test'

Signed-off-by: stevelr <[email protected]>

* start nats for tests

Signed-off-by: stevelr <[email protected]>

---------

Signed-off-by: stevelr <[email protected]>
  • Loading branch information
stevelr authored Mar 24, 2023
1 parent 4748e2f commit c68fe64
Show file tree
Hide file tree
Showing 9 changed files with 1,041 additions and 634 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/httpserver-lib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: HTTPSERVER_LIB

on:
push:
branches: [main]
paths:
- "httpserver-rs/**"
tags:
- "wasmcloud-httpserver-provider-v*"
pull_request:
branches: [main]
paths:
- "httpserver-rs/**"

env:
CARGO_TERM_COLOR: always
working-directory: ./httpserver-rs

jobs:
rust_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: run_all_tests_clippy_fmt
working-directory: ${{ env.working-directory }}
run: |
make test
rustfmt --edition 2021 --check src/*.rs tests/*.rs
cargo clippy --all
github_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: rust_test
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true

crates_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: github_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: crates-release-action
uses: wasmcloud/common-actions/crates-release@main
with:
working-directory: ${{ env.working-directory }}
crates-token: ${{ secrets.CRATES_PUBLISH_TOKEN }}
Loading

0 comments on commit c68fe64

Please sign in to comment.