-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
343 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,106 +17,106 @@ jobs: | |
go-version: "1.20" | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
# - name: Check out code into the Go module directory | ||
# uses: actions/checkout@v3 | ||
|
||
- name: Get dependencies | ||
run: | | ||
make wasm | ||
go get -v -t -d ./... | ||
- name: Build | ||
run: make build | ||
|
||
- name: Test | ||
run: make test-short | ||
|
||
contract-test: | ||
name: Wasm contract tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
TEST_LANG: [go, rswasm] | ||
steps: | ||
- name: checkout to the directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: install golang | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
|
||
- name: install rust-toolchain | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
|
||
- name: install wasm-pack | ||
run: | | ||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
- name: install schema | ||
run: | | ||
root_path=$(git rev-parse --show-toplevel) | ||
go install $root_path/tools/schema | ||
schema -go | ||
- name: run builds | ||
env: | ||
TEST_LANG: ${{matrix.TEST_LANG}} | ||
run: | | ||
cd contracts/wasm/scripts | ||
bash core_build.sh | ||
if [ $TEST_LANG == "rswasm" ]; then | ||
bash rust_all.sh ci | ||
fi | ||
- name: run tests | ||
env: | ||
TEST_LANG: ${{matrix.TEST_LANG}} | ||
run: | | ||
cd contracts/wasm | ||
if [ $TEST_LANG == "go" ]; then | ||
go test ./... | ||
elif [ $TEST_LANG == "rswasm" ]; then | ||
go test ./... -rswasm | ||
fi | ||
golangci: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
# - name: Generate SC files | ||
# - name: Get dependencies | ||
# run: | | ||
# cd contracts/wasm/scripts | ||
# bash schema_all.sh | ||
|
||
# - name: golangci-lint in SC | ||
# uses: golangci/golangci-lint-action@v3 | ||
# with: | ||
# working-directory: contracts/wasm | ||
# args: --fix --timeout 5m0s --path-prefix="" | ||
# skip-pkg-cache: true | ||
|
||
- name: Run global scope golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.53.2 | ||
args: --timeout 15m0s | ||
skip-pkg-cache: true | ||
|
||
- name: Run golangci-lint on wasp-cli | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
working-directory: tools/wasp-cli | ||
version: v1.53.2 | ||
args: --timeout 15m0s | ||
skip-pkg-cache: true | ||
# make wasm | ||
# go get -v -t -d ./... | ||
|
||
# - name: Build | ||
# run: make build | ||
|
||
# - name: Test | ||
# run: make test-short | ||
|
||
# contract-test: | ||
# name: Wasm contract tests | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# TEST_LANG: [go, rswasm] | ||
# steps: | ||
# - name: checkout to the directory | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: install golang | ||
# uses: actions/setup-go@v4 | ||
# with: | ||
# go-version: "1.20" | ||
|
||
# - name: install rust-toolchain | ||
# uses: actions-rs/[email protected] | ||
# with: | ||
# toolchain: stable | ||
|
||
# - name: install wasm-pack | ||
# run: | | ||
# curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
|
||
# - name: install schema | ||
# run: | | ||
# root_path=$(git rev-parse --show-toplevel) | ||
# go install $root_path/tools/schema | ||
# schema -go | ||
|
||
# - name: run builds | ||
# env: | ||
# TEST_LANG: ${{matrix.TEST_LANG}} | ||
# run: | | ||
# cd contracts/wasm/scripts | ||
# bash core_build.sh | ||
# if [ $TEST_LANG == "rswasm" ]; then | ||
# bash rust_all.sh ci | ||
# fi | ||
|
||
# - name: run tests | ||
# env: | ||
# TEST_LANG: ${{matrix.TEST_LANG}} | ||
# run: | | ||
# cd contracts/wasm | ||
# if [ $TEST_LANG == "go" ]; then | ||
# go test ./... | ||
# elif [ $TEST_LANG == "rswasm" ]; then | ||
# go test ./... -rswasm | ||
# fi | ||
|
||
# golangci: | ||
# name: Lint | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/setup-go@v4 | ||
# with: | ||
# go-version: "1.20" | ||
# id: go | ||
|
||
# - name: Check out code into the Go module directory | ||
# uses: actions/checkout@v3 | ||
|
||
# # - name: Generate SC files | ||
# # run: | | ||
# # cd contracts/wasm/scripts | ||
# # bash schema_all.sh | ||
|
||
# # - name: golangci-lint in SC | ||
# # uses: golangci/golangci-lint-action@v3 | ||
# # with: | ||
# # working-directory: contracts/wasm | ||
# # args: --fix --timeout 5m0s --path-prefix="" | ||
# # skip-pkg-cache: true | ||
|
||
# - name: Run global scope golangci-lint | ||
# uses: golangci/golangci-lint-action@v3 | ||
# with: | ||
# version: v1.53.2 | ||
# args: --timeout 15m0s | ||
# skip-pkg-cache: true | ||
|
||
# - name: Run golangci-lint on wasp-cli | ||
# uses: golangci/golangci-lint-action@v3 | ||
# with: | ||
# working-directory: tools/wasp-cli | ||
# version: v1.53.2 | ||
# args: --timeout 15m0s | ||
# skip-pkg-cache: true |
Oops, something went wrong.