Skip to content

Commit 2b0b8d9

Browse files
committed
add basic ci
1 parent 4330be4 commit 2b0b8d9

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Kurtosis install
2+
inputs:
3+
version:
4+
description: 'Version to install'
5+
required: false
6+
default: 'latest'
7+
runs:
8+
using: composite
9+
steps:
10+
- name: Install
11+
shell: bash
12+
run: |
13+
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
14+
sudo apt update
15+
if [ "${{ inputs.version }}" = "latest" ]; then
16+
sudo apt install kurtosis-cli
17+
else
18+
sudo apt install kurtosis-cli=${{ inputs.version }}
19+
fi
20+
kurtosis analytics disable
21+
echo "$(dirname $(which kurtosis))" >> $GITHUB_PATH

.github/workflows/per-pr.yml

Whitespace-only changes.

kurtosis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: "github.com/tedim52/avalabs-package"
22

33
replace:
4+
# custom package that puts dashboards directly in the grafana package
45
github.com/kurtosis-tech/grafana-package: /grafana-package
6+
7+
# using a custom package that starts the node exporter with prom
58
github.com/kurtosis-tech/prometheus-package: /prometheus-package

per-pr.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
group: "tests-${{ github.head_ref }}"
7+
cancel-in-progress: true
8+
9+
jobs:
10+
run_starlark:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
- name: Setup Kurtosis
16+
uses: ./.github/actions/kurtosis-install
17+
- name: Run basic test
18+
run: |
19+
kurtosis run ${{ github.workspace }} --args-file configs/just-network.json
20+
21+
run_with_args:
22+
strategy:
23+
matrix:
24+
file_name:
25+
[
26+
"./configs/just-network.json",
27+
"./configs/one-chain.json",
28+
"./configs/two-chains-with-bridge.json",
29+
"./configs/hypersdk.json",
30+
"./configs/fuji.json",
31+
]
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout Repository
35+
uses: actions/checkout@v4
36+
- name: Setup Kurtosis
37+
uses: ./.github/actions/kurtosis-install
38+
- name: Run Starlark
39+
run: |
40+
kurtosis run ${{ github.workspace }} --args-file ${{ matrix.file_name }}

0 commit comments

Comments
 (0)