-
Notifications
You must be signed in to change notification settings - Fork 17
39 lines (33 loc) · 969 Bytes
/
spec-tests.yml
File metadata and controls
39 lines (33 loc) · 969 Bytes
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
name: Spec Tests
on:
pull_request:
paths:
- "mainnet-1/specs/*.json"
- "testnet-2/specs/*.json"
# Optionally allow manual triggers
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Current Repository
uses: actions/checkout@v4
- name: Checkout Lava Repository
uses: actions/checkout@v4
with:
repository: lavanet/lava
path: lava
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.23"
- name: Copy specs to lava
run: |
rm -rf lava/specs
mkdir -p lava/specs/mainnet-1
mkdir -p lava/specs/testnet-2
cp -r $GITHUB_WORKSPACE/mainnet-1/specs lava/specs/mainnet-1/specs
cp -r $GITHUB_WORKSPACE/testnet-2/specs lava/specs/testnet-2/specs
- name: Run Tests
working-directory: lava/x/spec/keeper
run: go test -v -run TestSpecs