Skip to content

Commit

Permalink
chore: add to create-lz-oapp and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
St0rmBr3w committed Dec 11, 2024
1 parent aef8806 commit 49804c0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/create-lz-oapp/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ export const getExamples = (): Example[] => {
},
]
: []),
// OFT Alt example is feature flagged for the time being
...(process.env.LZ_ENABLE_ALT_EXAMPLE
? [
{
id: 'oft-alt',
label: 'OFTAlt',
repository,
directory: 'examples/oft-alt',
ref,
},
]
: []),
// Mint Burn OFT Adapter example is feature flagged for the time being
...(process.env.LZ_ENABLE_MINTBURN_EXAMPLE
? [
Expand Down
21 changes: 21 additions & 0 deletions tests-user/tests/create-lz-oapp.bats
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,17 @@ teardown() {
pnpm lint:fix
}

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

LZ_ENABLE_MINTBURN_EXAMPLE=1 npx --yes create-lz-oapp --ci --example mint-burn-oft-adapter --destination $DESTINATION --package-manager pnpm
=======
@test "should work with pnpm & oft-alt example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/pnpm-oft-alt"

LZ_ENABLE_NATIVE_EXAMPLE=1 npx --yes create-lz-oapp --ci --example oft-alt --destination $DESTINATION --package-manager pnpm
>>>>>>> 71ad4af6 (chore: add to create-lz-oapp and tests)
cd "$DESTINATION"
pnpm compile
pnpm test
Expand Down Expand Up @@ -253,10 +260,17 @@ teardown() {
yarn lint:fix
}

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

YARN_CACHE_FOLDER="/tmp/.yarn-cache-mint-burn-oft-adapter-evm" LZ_ENABLE_MINTBURN_EXAMPLE=1 npx --yes create-lz-oapp --ci --example mint-burn-oft-adapter --destination $DESTINATION --package-manager yarn
=======
@test "should work with yarn & oft-alt example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/yarn-oft-alt"

YARN_CACHE_FOLDER="/tmp/.yarn-cache-native-oft-alt-evm" LZ_ENABLE_NATIVE_EXAMPLE=1 npx --yes create-lz-oapp --ci --example oft-alt --destination $DESTINATION --package-manager yarn
>>>>>>> 71ad4af6 (chore: add to create-lz-oapp and tests)
cd "$DESTINATION"
yarn compile
yarn test
Expand Down Expand Up @@ -337,10 +351,17 @@ teardown() {
npm run lint:fix
}

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

LZ_ENABLE_MINTBURN_EXAMPLE=1 npx --yes create-lz-oapp --ci --example mint-burn-oft-adapter --destination $DESTINATION --package-manager npm
=======
@test "should work with npm & oft-alt example in CI mode" {
local DESTINATION="$PROJECTS_DIRECTORY/npm-oft-alt"

LZ_ENABLE_NATIVE_EXAMPLE=1 npx --yes create-lz-oapp --ci --example oft-alt --destination $DESTINATION --package-manager npm
>>>>>>> 71ad4af6 (chore: add to create-lz-oapp and tests)
cd "$DESTINATION"
npm run compile
npm run test
Expand Down
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"LZ_ENABLE_NATIVE_EXAMPLE",
"LZ_ENABLE_MINTBURN_EXAMPLE",
"LZ_ENABLE_UPGRADEABLE_EXAMPLE",
"LZ_ENABLE_ALT_EXAMPLE",

"LAYERZERO_EXAMPLES_REPOSITORY_URL",
"LAYERZERO_EXAMPLES_REPOSITORY_REF",
Expand Down

0 comments on commit 49804c0

Please sign in to comment.