Skip to content

Commit

Permalink
Merge pull request #7 from wasmCloud/lxfontes/clean-refactor
Browse files Browse the repository at this point in the history
chore: Re-testing everything
  • Loading branch information
lxfontes authored Sep 24, 2024
2 parents d2c2c9f + ac4e370 commit 3be17d4
Show file tree
Hide file tree
Showing 164 changed files with 12,175 additions and 106 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
matrix:
example:
- http-server
- http-client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -63,6 +64,10 @@ jobs:
- uses: acifani/setup-tinygo@v2
with:
tinygo-version: ${{ env.TINYGO_VERSION }}
- uses: golangci/golangci-lint-action@v6
with:
version: ${{ env.GOLANGCI_VERSION }}
working-directory: "_examples/${{ matrix.example }}"
- uses: wasmCloud/common-actions/install-wash@main
- uses: cargo-bins/cargo-binstall@main
- name: Tools
Expand All @@ -82,4 +87,5 @@ jobs:
- name: wash build
working-directory: "_examples/${{ matrix.example }}"
run: wash build
run: wash build

10 changes: 6 additions & 4 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
run:
tests: false
modules-download-mode: readonly

output:
uniq-by-line: false
show-stats: true
Expand All @@ -10,8 +14,7 @@ output:
linters:
enable:
- gofmt
# TODO(lxf): enable once we are ready to start releasing
#- revive
- revive
- thelper
- mirror
- usestdlibvars
Expand Down Expand Up @@ -95,5 +98,4 @@ linters-settings:
# List of words to ignore
# among the one defined in https://github.com/golangci/misspell/blob/master/words.go
ignore-words:
# - valor
# - and
- WASM
Empty file.
3 changes: 3 additions & 0 deletions _examples/http-client/build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Keep the directory but ignore all files. Dir is required to exist by the build process
*
!.gitignore

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

3 changes: 3 additions & 0 deletions _examples/http-client/gen/wasi/cli/environment/empty.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file exists for testing this package without WebAssembly,
// allowing empty function bodies with a //go:wasmimport directive.
// See https://pkg.go.dev/cmd/compile for more information.
64 changes: 64 additions & 0 deletions _examples/http-client/gen/wasi/cli/environment/environment.wit.go

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

3 changes: 3 additions & 0 deletions _examples/http-client/gen/wasi/cli/exit/empty.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file exists for testing this package without WebAssembly,
// allowing empty function bodies with a //go:wasmimport directive.
// See https://pkg.go.dev/cmd/compile for more information.
25 changes: 25 additions & 0 deletions _examples/http-client/gen/wasi/cli/exit/exit.wit.go

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

3 changes: 3 additions & 0 deletions _examples/http-client/gen/wasi/cli/stderr/empty.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file exists for testing this package without WebAssembly,
// allowing empty function bodies with a //go:wasmimport directive.
// See https://pkg.go.dev/cmd/compile for more information.
24 changes: 24 additions & 0 deletions _examples/http-client/gen/wasi/cli/stderr/stderr.wit.go

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

3 changes: 3 additions & 0 deletions _examples/http-client/gen/wasi/cli/stdin/empty.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file exists for testing this package without WebAssembly,
// allowing empty function bodies with a //go:wasmimport directive.
// See https://pkg.go.dev/cmd/compile for more information.
24 changes: 24 additions & 0 deletions _examples/http-client/gen/wasi/cli/stdin/stdin.wit.go

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

3 changes: 3 additions & 0 deletions _examples/http-client/gen/wasi/cli/stdout/empty.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file exists for testing this package without WebAssembly,
// allowing empty function bodies with a //go:wasmimport directive.
// See https://pkg.go.dev/cmd/compile for more information.
24 changes: 24 additions & 0 deletions _examples/http-client/gen/wasi/cli/stdout/stdout.wit.go

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

3 changes: 3 additions & 0 deletions _examples/http-client/gen/wasi/cli/terminal-input/empty.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file exists for testing this package without WebAssembly,
// allowing empty function bodies with a //go:wasmimport directive.
// See https://pkg.go.dev/cmd/compile for more information.

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

3 changes: 3 additions & 0 deletions _examples/http-client/gen/wasi/cli/terminal-output/empty.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file exists for testing this package without WebAssembly,
// allowing empty function bodies with a //go:wasmimport directive.
// See https://pkg.go.dev/cmd/compile for more information.

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

3 changes: 3 additions & 0 deletions _examples/http-client/gen/wasi/cli/terminal-stderr/empty.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file exists for testing this package without WebAssembly,
// allowing empty function bodies with a //go:wasmimport directive.
// See https://pkg.go.dev/cmd/compile for more information.

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

3 changes: 3 additions & 0 deletions _examples/http-client/gen/wasi/cli/terminal-stdin/empty.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file exists for testing this package without WebAssembly,
// allowing empty function bodies with a //go:wasmimport directive.
// See https://pkg.go.dev/cmd/compile for more information.

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

Loading

0 comments on commit 3be17d4

Please sign in to comment.