js.cover.dockerfile
raw| 1 | FROM golang:1.17 |
| 2 | |
| 3 | RUN curl -sL https://deb.nodesource.com/setup_17.x | bash |
| 4 | RUN apt-get install --yes nodejs |
| 5 | |
| 6 | WORKDIR /go/src/github.com/djherbis/times |
| 7 | COPY . . |
| 8 | |
| 9 | RUN GO111MODULE=auto GOOS=js GOARCH=wasm go test -covermode=count -coverprofile=profile.cov -exec="$(go env GOROOT)/misc/wasm/go_js_wasm_exec" |