diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..33e0310c27aac79de6abfa2ca1916ff577fced79 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +image: docker-registry.xx.network/elixxir/sysadmin/backend-ci:go1.17-wasm + +build: + stage: build + script: + - GOOS=js GOARCH=wasm go build -o xxdk.wasm + artifacts: + paths: + - xxdk.wasm + +#native-test: +# stage: test +# script: +# - go test ./... + +wasm-test: + stage: test + script: + - export PATH=/root/go/bin:$PATH + - GOOS=js GOARCH=wasm go test ./... diff --git a/README.md b/README.md index e2eff1d7248ca33e3e2f5356e355fcdbf8365a1f..38dd95093b98c83220d1af039768d0da110cb0ef 100644 --- a/README.md +++ b/README.md @@ -74,4 +74,4 @@ global.Go = class { } } } -``` \ No newline at end of file +```