Skip to content
Draft
Show file tree
Hide file tree
Changes from 9 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
3 changes: 0 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,3 @@ jobs:

- name: Cargo fmt check
run: cargo fmt --check --all

- name: Run tests
run: ./run-tests.sh
73 changes: 73 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
#
# SPDX-License-Identifier: Apache-2.0

name: Tests

on:
push:
branches: [ master, next, dev-* ]
pull_request:
branches: [ master, next, dev-* ]

env:
CARGO_TERM_COLOR: always

jobs:
rust-tests:
name: Rust tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.92.0

- name: Run tests
run: ./run-tests.sh

auth-eth-tests:
Comment thread Fixed
name: auth-eth tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: kms/auth-eth/package-lock.json

- name: Install dependencies
run: |
cd kms/auth-eth
npm ci

- name: Run tests
run: |
cd kms/auth-eth
npm test

kms-e2e-tests:
Comment thread Fixed
name: KMS E2E tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.92.0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: kms/auth-eth/package-lock.json

- name: Run KMS E2E tests
run: bash kms/e2e/run-e2e.sh
Comment thread Fixed
102 changes: 62 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ members = [
"no_std_check",
"size-parser",
"port-forward",
"kms/e2e",
]
resolver = "2"

Expand Down Expand Up @@ -177,7 +178,7 @@ url = "2.5"
# Cryptography/Security
aes-gcm = "0.10.3"
curve25519-dalek = "4.1.3"
dcap-qvl = "0.3.10"
dcap-qvl = { git = "https://github.com/Phala-Network/dcap-qvl", branch = "policy" }
elliptic-curve = { version = "0.13.8", features = ["pkcs8"] }
getrandom = "0.3.1"
hkdf = "0.12.4"
Expand Down
Loading
Loading