Skip to content

Commit

Permalink
fix: try fix ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ly0va committed Nov 28, 2024
1 parent db62938 commit 4d475ba
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
submodules: 'true'
submodules: recursive

# Start node
- name: Era Test Node Action
Expand All @@ -29,19 +29,25 @@ jobs:
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: lts/Iron
cache: 'pnpm'
cache: pnpm

# Install dependencies for repo
- name: Install dependencies
run: pnpm install -r --frozen-lockfile

# Install dependencies for the submodule
- name: Install contract dependencies
run: pnpm install -r --frozen-lockfile
working-directory: packages/contracts

# Build SDK
- name: Build SDK
run: pnpm nx build sdk

# Deploy contracts
- name: Deploy contracts
run: pnpm nx deploy contracts
run: pnpm run deploy
working-directory: packages/contracts

# Run E2E tests
- name: Install Playwright Chromium Browser
Expand All @@ -56,7 +62,7 @@ jobs:
path: examples/demo-app/playwright-report/
retention-days: 3


e2e-nft-quest:
runs-on: ubuntu-latest
defaults:
Expand All @@ -65,7 +71,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
submodules: 'true'
submodules: recursive

# Start node
- name: Era Test Node Action
Expand All @@ -81,19 +87,25 @@ jobs:
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: lts/Iron
cache: 'pnpm'
cache: pnpm

# Install dependencies for repo
- name: Install dependencies
run: pnpm install -r --frozen-lockfile

# Install dependencies for the submodule
- name: Install contract dependencies
run: pnpm install -r --frozen-lockfile
working-directory: packages/contracts

# Build SDK
- name: Build SDK
run: pnpm nx build sdk

# Deploy contracts
- name: Deploy contracts
run: pnpm nx deploy contracts
run: pnpm run deploy
working-directory: packages/contracts

# Deploy nft-quest-contracts
- name: Deploy NFT contracts
Expand Down Expand Up @@ -121,7 +133,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
submodules: 'true'
submodules: recursive

# Start node
- name: Era Test Node Action
Expand All @@ -137,17 +149,20 @@ jobs:
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: lts/Iron
cache: 'pnpm'
cache: pnpm

# Install dependencies for repo
- name: Install dependencies
# Install dependencies for the submodule
- name: Install contract dependencies
run: pnpm install -r --frozen-lockfile
working-directory: packages/contracts

# Build contracts and generate types
- name: Build contracts
run: pnpm nx build contracts
run: pnpm build
working-directory: packages/contracts

# Run contract tests
- name: Run contract test
run: pnpm nx test contracts
run: pnpm test
working-directory: packages/contracts

0 comments on commit 4d475ba

Please sign in to comment.