-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from MeteoraAg/feat/seed-liquidity-lfg
feat: Seed liquidity LFG
- Loading branch information
Showing
45 changed files
with
2,625 additions
and
525 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: "Setup anchor-cli" | ||
description: "Setup node js and anchor cli" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- run: npm install -g @coral-xyz/anchor-cli@${{ env.ANCHOR_CLI_VERSION }} yarn | ||
shell: bash |
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,7 @@ | ||
name: "Setup" | ||
description: "Setup program dependencies" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- run: sudo apt-get update && sudo apt-get install -y pkg-config build-essential libudev-dev | ||
shell: bash |
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,21 @@ | ||
name: "Setup Solana" | ||
description: "Setup Solana" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/cache@v2 | ||
name: Cache Solana Tool Suite | ||
id: cache-solana | ||
with: | ||
path: | | ||
~/.cache/solana/ | ||
~/.local/share/solana/ | ||
key: solana-${{ runner.os }}-v0000-${{ env.SOLANA_CLI_VERSION }} | ||
- run: sh -c "$(curl -sSfL https://release.solana.com/v${{ env.SOLANA_CLI_VERSION }}/install)" | ||
shell: bash | ||
- run: echo "$HOME/.local/share/solana/install/active_release/bin/" >> $GITHUB_PATH | ||
shell: bash | ||
- run: solana-keygen new --no-bip39-passphrase | ||
shell: bash | ||
- run: solana config set --url localhost | ||
shell: bash |
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,49 @@ | ||
name: Typescript SDK CI | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "config/**" | ||
- "README.md" | ||
- "LICENSE" | ||
- ".editorconfig" | ||
branches: | ||
- main | ||
|
||
env: | ||
SOLANA_CLI_VERSION: 1.16.3 | ||
NODE_VERSION: 18.14.2 | ||
ANCHOR_CLI_VERSION: 0.28.0 | ||
|
||
jobs: | ||
sdk_changed_files: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
sdk: ${{steps.changed-files-specific.outputs.any_changed}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get specific changed files | ||
id: changed-files-specific | ||
uses: tj-actions/[email protected] | ||
with: | ||
files: | | ||
src | ||
sdk_test: | ||
runs-on: ubuntu-latest | ||
needs: sdk_changed_files | ||
if: needs.sdk_changed_files.outputs.sdk == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-solana | ||
- uses: ./.github/actions/setup-dep | ||
- uses: oven-sh/setup-bun@v2 | ||
# This much more faster than anchor localnet | ||
- run: bun run start-test-validator & sleep 2 | ||
shell: bash | ||
- run: bun install | ||
shell: bash | ||
- run: bun test | ||
shell: bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const TIMEOUT_SEC = 1000; | ||
|
||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
transform: { | ||
'^.+\\.ts?$': 'ts-jest', | ||
}, | ||
transformIgnorePatterns: ['<rootDir>/node_modules/'], | ||
testTimeout: TIMEOUT_SEC * 90, | ||
}; |
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.