feat: KOII Spec Champion TeoViTeoVi #60
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |