Skip to content

Commit

Permalink
chore: add CI tests for aptos examples
Browse files Browse the repository at this point in the history
  • Loading branch information
St0rmBr3w committed Dec 10, 2024
1 parent c4d53a4 commit 76b0975
Showing 1 changed file with 117 additions and 0 deletions.
117 changes: 117 additions & 0 deletions tests-user/tests/create-lz-oapp.bats
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,42 @@ teardown() {
pnpm test
}

@test "should work with pnpm & oft aptos example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/pnpm-oft-aptos"

LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-aptos --destination $DESTINATION --package-manager pnpm
cd "$DESTINATION"
pnpm compile
pnpm test
}

@test "should work with pnpm & oft adapter aptos example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/pnpm-oft-adapter-aptos"

LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-adapter-aptos --destination $DESTINATION --package-manager pnpm
cd "$DESTINATION"
pnpm compile
pnpm test
}

@test "should work with pnpm & oft aptos coin example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/pnpm-oft-aptos-coin"

LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-aptos-coin --destination $DESTINATION --package-manager pnpm
cd "$DESTINATION"
pnpm compile
pnpm test
}

@test "should work with pnpm & oft adapter aptos coin example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/pnpm-oft-adapter-aptos-coin"

LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-adapter-aptos-coin --destination $DESTINATION --package-manager pnpm
cd "$DESTINATION"
pnpm compile
pnpm test
}

@test "should work with pnpm & oapp read example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/pnpm-oapp-read"

Expand Down Expand Up @@ -251,6 +287,51 @@ teardown() {
yarn test
}

@test "should work with yarn & oft aptos example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/yarn-oft-aptos"

YARN_CACHE_FOLDER="/tmp/.yarn-cache-oft-aptos" LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-aptos --destination $DESTINATION --package-manager yarn
cd "$DESTINATION"
yarn compile
yarn test
}

@test "should work with yarn & oft adapter aptos example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/yarn-oft-adapter-aptos"

YARN_CACHE_FOLDER="/tmp/.yarn-cache-oft-adapter-aptos" LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-adapter-aptos --destination $DESTINATION --package-manager yarn
cd "$DESTINATION"
yarn compile
yarn test
}

@test "should work with yarn & oft aptos coin example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/yarn-oft-adapter-aptos-coin"

YARN_CACHE_FOLDER="/tmp/.yarn-cache-oft-adapter-aptos-coin" LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-adapter-aptos-coin --destination $DESTINATION --package-manager yarn
cd "$DESTINATION"
yarn compile
yarn test
}

@test "should work with yarn & oft adapter aptos coin example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/yarn-oft-aptos-coin"

YARN_CACHE_FOLDER="/tmp/.yarn-cache-oft-aptos-coin" LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-aptos-coin --destination $DESTINATION --package-manager yarn
cd "$DESTINATION"
yarn compile
yarn test
}

@test "should work with npm & oft adapter aptos coin example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/npm-oft-adapter-aptos"

LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-adapter-aptos-coin --destination $DESTINATION --package-manager npm
cd "$DESTINATION"
npm run compile
npm run test
}

@test "should work with yarn & oapp read example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/yarn-oapp-read"

Expand Down Expand Up @@ -324,6 +405,42 @@ teardown() {
npm run test
}

@test "should work with npm & oft aptos example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/npm-oft-aptos"

LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-aptos --destination $DESTINATION --package-manager npm
cd "$DESTINATION"
npm run compile
npm run test
}

@test "should work with npm & oft adapter aptos example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/npm-oft-adapter-aptos"

LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-adapter-aptos --destination $DESTINATION --package-manager npm
cd "$DESTINATION"
npm run compile
npm run test
}

@test "should work with npm & oft aptos coin example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/npm-oft-aptos-coin"

LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-aptos-coin --destination $DESTINATION --package-manager npm
cd "$DESTINATION"
npm run compile
npm run test
}

@test "should work with npm & oft adapter aptos coin example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/npm-oft-adapter-aptos"

LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES=1 npx --yes create-lz-oapp --ci --example oft-adapter-aptos-coin --destination $DESTINATION --package-manager npm
cd "$DESTINATION"
npm run compile
npm run test
}

@test "should work with npm & oapp read example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/npm-oapp-read"

Expand Down

0 comments on commit 76b0975

Please sign in to comment.