-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added osmosis to integration test framework (#1328)
- Loading branch information
Showing
17 changed files
with
233 additions
and
80 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
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
This file was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { defineConfig } from "vitest/config"; | ||
|
||
export default defineConfig({ | ||
test: { | ||
globals: true, | ||
environment: "node", | ||
testTimeout: 30000, | ||
hookTimeout: 30000, | ||
pool: "forks", | ||
poolOptions: { | ||
forks: { | ||
singleFork: true, | ||
}, | ||
}, | ||
server: { | ||
deps: { | ||
inline: ["stridejs"], | ||
}, | ||
}, | ||
reporters: ["verbose"], | ||
}, | ||
resolve: { | ||
alias: { | ||
stridejs: "stridejs/dist/esm", // Force ESM path | ||
}, | ||
}, | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM golang:1.23-alpine3.21 AS builder | ||
|
||
WORKDIR /opt | ||
|
||
RUN apk add --update curl make git libc-dev bash gcc linux-headers eudev-dev ca-certificates build-base git | ||
|
||
ENV REPO=https://github.com/osmosis-labs/osmosis | ||
ENV COMMIT_HASH=v27.0.0 | ||
ENV BINARY=osmosisd | ||
|
||
RUN git clone ${REPO} chain \ | ||
&& cd chain \ | ||
&& git checkout $COMMIT_HASH | ||
|
||
WORKDIR /opt/chain | ||
|
||
RUN ARCH=$(uname -m) && WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm/v2 | sed 's/.* //') && \ | ||
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm_muslc.$ARCH.a \ | ||
-O /lib/libwasmvm_muslc.$ARCH.a | ||
|
||
RUN BUILD_TAGS=muslc LINK_STATICALLY=true make install | ||
|
||
FROM alpine:3.21 | ||
COPY --from=builder /go/bin/$BINARY /usr/local/bin/ | ||
RUN apk add bash vim sudo dasel jq curl \ | ||
&& addgroup -g 1000 validator \ | ||
&& adduser -S -h /home/validator -D validator -u 1000 -G validator | ||
|
||
USER 1000 | ||
WORKDIR /home/validator | ||
|
||
EXPOSE 26657 26656 1317 9090 |
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
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
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
Oops, something went wrong.