Skip to content

Commit 64354eb

Browse files
Merge remote-tracking branch 'origin/main' into feat/tx-result-xdr
2 parents c0cb0d2 + c9432ab commit 64354eb

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Test'
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
11+
tests:
12+
name: 'Tests'
13+
runs-on: [self-hosted, linux, normal]
14+
timeout-minutes: 120
15+
env:
16+
GC_DONT_GC: '1'
17+
# Enable flakes for every nix invocation so the job does not depend on
18+
# flakes being globally enabled on the runner (same as release.yml).
19+
NIX_CONFIG: 'extra-experimental-features = nix-command flakes'
20+
steps:
21+
- name: 'Check out code'
22+
uses: actions/checkout@v4
23+
# Even the unit tests need the kompiled semantics: importing komet_node
24+
# loads komet.utils, which resolves the soroban-semantics.llvm kdist
25+
# target at import time. The flake's dev shell provides the required
26+
# toolchain (K, uv, wat2wasm), with the prebuilt `k` package substituted
27+
# from the k-framework Nix cache.
28+
- name: 'Build K semantics'
29+
run: nix develop --command make kdist-build
30+
- name: 'Run all tests'
31+
run: nix develop --command make test

0 commit comments

Comments
 (0)