Skip to content

Commit

Permalink
Build dependent packages in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Nov 8, 2023
1 parent 09f3fe5 commit 5dd86a4
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 21 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/pull-request-stake-pool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ jobs:
runs-on: ubuntu-latest
env:
NODE_VERSION: 16.x
needs: cargo-test-sbf
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
Expand All @@ -99,11 +98,6 @@ jobs:
key: node-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
node-
- name: Download programs
uses: actions/download-artifact@v2
with:
name: stake-pool-programs
path: target/deploy
- run: ./ci/js-test-stake-pool.sh

py-test:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/pull-request-token-lending.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ jobs:
runs-on: ubuntu-latest
env:
NODE_VERSION: 18.x
needs: cargo-test-sbf
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
Expand All @@ -86,9 +85,4 @@ jobs:
key: node-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
node-
- name: Download programs
uses: actions/download-artifact@v2
with:
name: token-lending-programs
path: target/deploy
- run: ./ci/js-test-token-lending.sh
7 changes: 5 additions & 2 deletions ci/js-test-stake-pool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

set -ex
cd "$(dirname "$0")/.."
source ./ci/solana-version.sh install

cd stake-pool/js
pnpm install

(cd memo/js && pnpm build)
(cd token/js && pnpm build)

cd stake-pool/js
pnpm lint
pnpm build
pnpm test
1 change: 0 additions & 1 deletion ci/js-test-tlv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

set -e
cd "$(dirname "$0")/.."
source ./ci/solana-version.sh install

set -x
cd libraries/type-length-value/js
Expand Down
7 changes: 5 additions & 2 deletions ci/js-test-token-lending.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

set -e
cd "$(dirname "$0")/.."
source ./ci/solana-version.sh install

set -x
cd token-lending/js
pnpm install

(cd memo/js && pnpm build)
(cd token/js && pnpm build)

cd token-lending/js
pnpm lint
pnpm build
7 changes: 4 additions & 3 deletions ci/js-test-token-metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

set -e
cd "$(dirname "$0")/.."
source ./ci/solana-version.sh install

set -x
cd token-metadata/js

pnpm install

(cd libraries/type-length-value/js && pnpm build)

cd token-metadata/js
pnpm lint
pnpm build
pnpm test
6 changes: 5 additions & 1 deletion ci/js-test-token-swap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ set -ex
cd "$(dirname "$0")/.."
source ./ci/solana-version.sh install

cd token-swap/js
pnpm install

(cd memo/js && pnpm build)
(cd token/js && pnpm build)

cd token-swap/js
pnpm lint
pnpm build
pnpm start-with-test-validator
Expand Down

0 comments on commit 5dd86a4

Please sign in to comment.