use Vec::with_capacity avoid realloc mem #188
Workflow file for this run
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: e2e | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
paths: | |
- '**.rs' | |
- '**.go' | |
- '**.toml' | |
- '**.lock' | |
- '**.mod' | |
- '**.sum' | |
- '**.sol' | |
- '.github/workflows/e2e.yml' | |
env: | |
FOUNDRY_PROFILE: ci | |
permissions: | |
contents: read | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
- uses: actions/checkout@v4 | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: v1.60 | |
args: --timeout 5m | |
working-directory: e2e/interchaintestv8 | |
e2e: | |
strategy: | |
fail-fast: false | |
matrix: | |
test: | |
# List your tests here | |
- TestWithSP1ICS07TendermintTestSuite/TestDeploy | |
- TestWithSP1ICS07TendermintTestSuite/TestUpdateClient | |
- TestWithSP1ICS07TendermintTestSuite/TestUnionMembership | |
- TestWithSP1ICS07TendermintTestSuite/TestSP1Membership | |
- TestWithSP1ICS07TendermintTestSuite/TestUpdateClientAndMembership | |
- TestWithSP1ICS07TendermintTestSuite/TestDoubleSignMisbehaviour | |
- TestWithSP1ICS07TendermintTestSuite/TestBreakingTimeMonotonicityMisbehaviour | |
name: ${{ matrix.test }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
check-latest: true | |
cache-dependency-path: e2e/interchaintestv8/go.sum | |
- name: Install rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Get SP1 version | |
id: sp1-version | |
run: | | |
sp1_version=$(cargo metadata --format-version 1 | jq -r '.packages[] | select(.name == "sp1-sdk") | .version') | |
echo "sp1_version=v$sp1_version" >> $GITHUB_OUTPUT | |
- name: Install SP1 toolchain | |
run: | | |
curl -L https://raw.githubusercontent.com/succinctlabs/sp1/${{ steps.sp1-version.outputs.sp1_version }}/sp1up/install | bash | |
~/.sp1/bin/sp1up --token ${{ secrets.GITHUB_TOKEN }} | |
~/.sp1/bin/cargo-prove prove --version | |
- name: Install just | |
uses: extractions/setup-just@v2 | |
- name: Build operator | |
run: just build-operator | |
- name: "Install Bun" | |
uses: "oven-sh/setup-bun@v1" | |
- name: "Install the Node.js dependencies" | |
run: bun install | |
- name: Run Tests | |
env: | |
SP1_PRIVATE_KEY: ${{ secrets.SP1_PRIVATE_KEY }} | |
run: | | |
cd e2e/interchaintestv8 | |
go test -v -mod=readonly . -run '^${{ matrix.test }}$' -timeout 40m |