Browse Source

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

pull/6401/head
Callum Waters 3 years ago
committed by GitHub
parent
commit
3c50c5a845
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions
  1. +3
    -4
      .github/workflows/e2e-nightly-master.yml
  2. +0
    -0
      .github/workflows/lint.yml
  3. +1
    -0
      .github/workflows/linter.yml
  4. +4
    -4
      test/e2e/generator/main.go

+ 3
- 4
.github/workflows/e2e-nightly-master.yml 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


.github/workflows/lint.yaml → .github/workflows/lint.yml View File


+ 1
- 0
.github/workflows/linter.yml View File

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


+ 4
- 4
test/e2e/generator/main.go 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)


Loading…
Cancel
Save