github actions: fix e2e-nightly-master.yml (#6398)

This commit is contained in:
Callum Waters
2021-04-28 12:22:18 +02:00
committed by GitHub
parent be2ac87ab0
commit 3c50c5a845
4 changed files with 8 additions and 8 deletions

View File

@@ -35,12 +35,11 @@ jobs:
- name: Generate testnets
working-directory: test/e2e
# When changing -g, also change the matrix groups above
run: ./build/generator -g 4 -d networks/nightly/{{ matrix.p2p }} -p {{ matrix.p2p }}
run: ./build/generator -g 4 -d networks/nightly/${{ matrix.p2p }} -p ${{ matrix.p2p }}
- name: Run {{ matrix.p2p }} p2p testnets in group ${{ matrix.group }}
- name: Run ${{ matrix.p2p }} p2p testnets in group ${{ matrix.group }}
working-directory: test/e2e
run: ./run-multiple.sh networks/nightly/{{ matrix.p2p }}/*-group${{ matrix.group
}}-*.toml
run: ./run-multiple.sh networks/nightly/${{ matrix.p2p }}/*-group${{ matrix.group }}-*.toml
e2e-nightly-fail-2:
needs: e2e-nightly-test-2

View File

@@ -11,6 +11,7 @@ on:
branches: [master]
paths:
- "**.md"
- "**.yml"
jobs:
build:

View File

@@ -50,11 +50,11 @@ func NewCLI() *CLI {
return err
}
var opts Options
switch p2pMode {
case "new", "legacy", "split", "mixed":
opts = Options{P2P: P2PMode(p2pMode)}
switch mode := P2PMode(p2pMode); mode {
case NewP2PMode, LegacyP2PMode, HybridP2PMode, MixedP2PMode:
opts = Options{P2P: mode}
default:
return fmt.Errorf("p2p mode must be either new, legacy, split or mixed got %s", p2pMode)
return fmt.Errorf("p2p mode must be either new, legacy, hybrid or mixed got %s", p2pMode)
}
return cli.generate(dir, groups, opts)