Skip to content

Commit

Permalink
feat: add nested namespaces (#19)
Browse files Browse the repository at this point in the history
* feat: add nested namespaces

* feat: add function types

* cleanup: improve function type validation

* ci: update shopify checkfile to use latest features

* fix: expected/actual name and position in imports params check

* ci: update fermyon checkfiles to use latest features

* ci: update fastly checkfiles to use latest features

* feat: add namespace prefix to error report for import include/exclude validation

* cleanup: use namespaced function names for reporting function types

* fix: print only if report has errors

* ci: Add Vendor Fluvio (#18)

* ci: Add Vendor Fluvio

* new syntax

* update syntax

---------

Co-authored-by: zach <[email protected]>
Co-authored-by: Benjamin Eckel <[email protected]>
  • Loading branch information
3 people authored Feb 13, 2023
1 parent de93587 commit 9796dfa
Show file tree
Hide file tree
Showing 23 changed files with 709 additions and 80 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci-vendor-fluvio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Modsurfer Action - Fluvio
on: [push, pull_request, workflow_dispatch]
jobs:
check-validate:
runs-on: ubuntu-latest
strategy:
matrix:
wasm: [filter, map, filter-map, array-map, aggregate]
steps:
- uses: actions/checkout@v3
- name: modsurfer validate
uses: dylibso/modsurfer-validate-action@main
with:
path: vendors/fluvio/${{ matrix.wasm }}/${{ matrix.wasm }}.wasm
check: vendors/fluvio/${{ matrix.wasm }}/mod.yaml
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion cli/src/cmd/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ impl Cli {
let report = validate_module(&file, &check).await?;
match output_format {
OutputFormat::Json => println!("{}", serde_json::to_string_pretty(&report)?),
OutputFormat::Table => println!("{report}"),
OutputFormat::Table => {
if report.has_failures() {
println!("{report}")
}
}
};
Ok(report.as_exit_code())
}
Expand Down
Loading

0 comments on commit 9796dfa

Please sign in to comment.