Bump github.com/libp2p/go-libp2p from 0.22.0 to 0.27.8 in /test (#189) #84
This file contains 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: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.go' | |
- '**.mod' | |
- '**.sum' | |
- '**.proto' | |
- 'Makefile' | |
jobs: | |
unit: | |
runs-on: ubuntu-latest | |
steps: | |
# Install and setup go | |
- name: Set up Go 1.19 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.19' | |
# checkout horcrux | |
- name: checkout horcrux | |
uses: actions/checkout@v3 | |
# make sure proto files are up to date | |
- name: generate fresh signer proto .go files | |
run: make signer-proto | |
# run tests | |
- name: run horcrux tests | |
run: make test | |
e2e: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
test: | |
- TestMultipleChainHorcrux | |
- TestChainPureHorcrux | |
- TestDownedSigners2of3 | |
- TestDownedSigners3of5 | |
- TestLeaderElection2of3 | |
- Test2Of3SignerThreeSentries | |
- Test2Of3SignerThreeSentriesUniqueConnection | |
- TestUpgradeValidatorToHorcrux | |
- TestSingleSignerTwoSentries | |
steps: | |
# Install and setup go | |
- name: Set up Go 1.20 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.20.0' | |
# checkout horcrux | |
- name: checkout horcrux | |
uses: actions/checkout@v3 | |
# make sure proto files are up to date | |
- name: generate fresh signer proto .go files | |
run: make signer-proto | |
# run test matrix | |
- name: run test | |
run: cd test && go test -v -timeout 30m -run ^${{ matrix.test }}$ . |