Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flow Deployment #187

Merged
merged 16 commits into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/docker-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,37 @@ jobs:
aws-secret-access-key: ${{ secrets.ACCESS_KEY }}
- name: Push
run: ./scripts/ecr-push.bash login
- name: Clean up
run: podman image prune -f
integration-test:
name: Integration Test
needs: build
runs-on: self-hosted
env:
APIKEY: ${{ secrets.INTEGRATION_TESTS_APIKEY }}
KEYPAIR: ${{ secrets.INTEGRATION_TESTS_KEYPAIR }}
SOLANA_DEVNET_URL: ${{ secrets.SOLANA_DEVNET_URL }}
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: default
override: true
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Install deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Build Integration Tests
run: cargo build --bin integration-tests --quiet
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
aws-access-key-id: ${{ secrets.ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ACCESS_KEY }}
- name: Run Integration Tests
env:
APIKEY: ${{ secrets.INTEGRATION_TESTS_APIKEY }}
KEYPAIR: ${{ secrets.INTEGRATION_TESTS_KEYPAIR }}
run: cargo run --bin integration-tests --quiet -- --ecr-login
37 changes: 36 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:

jobs:
build:
if: contains(github.event.pull_request.labels.*.name, 'docker')
name: Build docker image
if: contains(github.event.pull_request.labels.*.name, 'docker')
runs-on: self-hosted
env:
BRANCH: ${{ github.head_ref || github.ref_name }}
Expand All @@ -23,3 +23,38 @@ jobs:
aws-secret-access-key: ${{ secrets.ACCESS_KEY }}
- name: Push
run: ./scripts/ecr-push.bash login
- name: Clean up
run: podman image prune -f
integration-test:
name: Integration Test
if: ${{ contains(github.event.pull_request.labels.*.name, 'integration-test') }}
needs: build
runs-on: self-hosted
env:
APIKEY: ${{ secrets.INTEGRATION_TESTS_APIKEY }}
KEYPAIR: ${{ secrets.INTEGRATION_TESTS_KEYPAIR }}
SOLANA_DEVNET_URL: ${{ secrets.SOLANA_DEVNET_URL }}
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: default
override: true
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Install deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Build Integration Tests
run: cargo build --bin integration-tests --quiet
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
aws-access-key-id: ${{ secrets.ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ACCESS_KEY }}
- name: Run Integration Tests
env:
APIKEY: ${{ secrets.INTEGRATION_TESTS_APIKEY }}
KEYPAIR: ${{ secrets.INTEGRATION_TESTS_KEYPAIR }}
run: cargo run --bin integration-tests --quiet -- --ecr-login
13 changes: 6 additions & 7 deletions .github/workflows/basic.yml → .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ jobs:
name: Unit test
runs-on: self-hosted
permissions:
checks: write
checks: write
contents: read
env:
SOLANA_DEVNET_URL: ${{ secrets.SOLANA_DEVNET_URL }}
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: default
override: true
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/clippy-check@v1
with:
Expand All @@ -33,13 +34,11 @@ jobs:
-A clippy::too_many_arguments
- name: Assert Cargo.lock unchanged
run: .github/assert_cargo_lock_unchanged.bash
- name: Build tests
run: cargo test --quiet --no-run
- name: Install deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Build tests
run: cargo test --quiet --no-run
- name: Run tests
env:
SOLANA_DEVNET_URL: ${{ secrets.SOLANA_DEVNET_URL }}
run: cargo test -- --skip need_key_
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ guest_local_storage
local_storage
config.toml
.env
.ipynb_checkpoints
2 changes: 1 addition & 1 deletion @space-operator/client/deno.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@space-operator/client",
"version": "0.9.0",
"version": "0.10.0",
"exports": "./src/mod.ts"
}
Loading
Loading