Skip to content

Commit df262e5

Browse files
committed
ci: extract tests into dedicated workflow and add auth-eth tests
Move Rust tests from rust.yml (now lint-only) into a new tests.yml workflow. Add auth-eth Jest tests as a parallel CI job.
1 parent 2dab2f8 commit df262e5

2 files changed

Lines changed: 52 additions & 3 deletions

File tree

.github/workflows/rust.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,3 @@ jobs:
3030

3131
- name: Cargo fmt check
3232
run: cargo fmt --check --all
33-
34-
- name: Run tests
35-
run: ./run-tests.sh

.github/workflows/tests.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: Tests
6+
7+
on:
8+
push:
9+
branches: [ master, next, dev-* ]
10+
pull_request:
11+
branches: [ master, next, dev-* ]
12+
13+
env:
14+
CARGO_TERM_COLOR: always
15+
16+
jobs:
17+
rust-tests:
18+
name: Rust tests
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Install Rust
24+
uses: dtolnay/rust-toolchain@master
25+
with:
26+
toolchain: 1.92.0
27+
28+
- name: Run tests
29+
run: ./run-tests.sh
30+
31+
auth-eth-tests:
32+
name: auth-eth tests
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- name: Setup Node.js
38+
uses: actions/setup-node@v4
39+
with:
40+
node-version: '18'
41+
cache: 'npm'
42+
cache-dependency-path: kms/auth-eth/package-lock.json
43+
44+
- name: Install dependencies
45+
run: |
46+
cd kms/auth-eth
47+
npm ci
48+
49+
- name: Run tests
50+
run: |
51+
cd kms/auth-eth
52+
npm test

0 commit comments

Comments
 (0)