Skip to content
Draft
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
52 changes: 0 additions & 52 deletions .github/Dockerfile

This file was deleted.

63 changes: 0 additions & 63 deletions .github/build-workflow.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/build.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github/run-main-cargo-tests.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .github/run-main-primitives-cargo-tests.sh

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/main.yaml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/only_linux_binary.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: PR Check

on:
pull_request:
branches: [main, feature/tools-def-exec]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Check PR
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Cache cargo assets
id: cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: (Linux) Install build deps
run: |
sudo apt-get install -y protobuf-compiler

- name: build workspace
run: cargo check --workspace

- name: run cargo test
run: cargo test --workspace -- --test-threads=1
env:
IS_TESTING: 1
WELCOME_MESSAGE: false
FROM_WALLET_MNEMONICS: ${{ secrets.FROM_WALLET_MNEMONICS }}
FROM_WALLET_PRIVATE_KEY: ${{ secrets.FROM_WALLET_PRIVATE_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_URL: ${{ secrets.AWS_URL }}
23 changes: 5 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,29 +81,16 @@ For running a specific test (useful for debugging) you can use:
cargo test tcp_node_test -- --nocapture --test-threads=1
```

### Running Dockerized Tests
### Running Tests

#### Main tests

```
# Build testing image
docker build -t testing_image -f .github/Dockerfile .
# Run tests
cargo test --workspace

# Run tests main cargo tests
docker run --entrypoint /entrypoints/run-main-cargo-tests.sh testing_image
```

#### WASM tests

```
# Build testing image - shinkai-message-wasm
docker build -t testing_image_wasm -f .github/Dockerfile.wasm .

# Run tests shinkai-message-wasm cargo tests
docker run --entrypoint /entrypoints/run-wasm-pack-tests.sh testing_image_wasm

# Run tests shinkai-message-wasm wasm-pack tests
docker run --entrypoint /entrypoints/run-wasm-cargo-tests.sh testing_image_wasm
# For specific projects
cargo test -p shinkai_message_primitives
```

### Shinkai App tests
Expand Down
2 changes: 0 additions & 2 deletions docker-build/.gitignore

This file was deleted.

16 changes: 0 additions & 16 deletions docker-build/Dockerfile-RELEASE

This file was deleted.

9 changes: 0 additions & 9 deletions docker-build/Dockerfile-RELEASE.dockerignore

This file was deleted.

Loading