-
Notifications
You must be signed in to change notification settings - Fork 112
53 lines (49 loc) · 1.77 KB
/
zombienet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: zombienet
run-name: Zombienet tests
on:
pull_request:
jobs:
zombienet-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.21"
stable: true
check-latest: true
- name: Set cache variables
id: go-cache-paths
run: |
echo "::set-output name=go-build::$(go env GOCACHE)"
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
- uses: actions/checkout@v4
- name: Go build cache
uses: actions/cache@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-build
- name: Go modules cache
uses: actions/cache@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-mod
- name: Run build
run: |
make build
echo "$HOME/work/gossamer/gossamer/bin" >> $GITHUB_PATH
- name: Install Zombienet
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
wget -O /usr/local/bin/zombienet https://github.com/paritytech/zombienet/releases/download/v1.3.41/zombienet-linux-x64
elif [ "$RUNNER_OS" == "macOS" ]; then
wget -O /usr/local/bin/zombienet https://github.com/paritytech/zombienet/releases/download/v1.3.41/zombienet-macos
else
echo "Zombienet for $RUNNER_OS is not supported"
exit 1
fi
chmod +x /usr/local/bin/zombienet
- name: Zombienet test
run: |
zombienet test -p native zombienet_tests/functional/0001-basic-network.zndsl