diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml new file mode 100644 index 0000000..4507a62 --- /dev/null +++ b/.github/workflows/benchmarks.yml @@ -0,0 +1,25 @@ +name: benchmarks + +on: + push: + branches: [ "master" ] + +env: + MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }} + GOERLI_RPC_URL: ${{ secrets.GOERLI_RPC_URL }} + +jobs: + benches: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + components: rustfmt + - uses: Swatinem/rust-cache@v2 + - uses: actions-rs/cargo@v1 + with: + command: bench diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1066a60..9f0a89c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,10 +6,6 @@ on: pull_request: branches: [ "master" ] -env: - MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }} - GOERLI_RPC_URL: ${{ secrets.GOERLI_RPC_URL }} - jobs: check: runs-on: ubuntu-latest @@ -56,21 +52,6 @@ jobs: command: fmt args: --all -- --check - benches: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true - components: rustfmt - - uses: Swatinem/rust-cache@v2 - - uses: actions-rs/cargo@v1 - with: - command: bench - clippy: runs-on: ubuntu-latest steps: