Skip to content

fix(deps): Fix gas filler for recent alloy-provider #71

fix(deps): Fix gas filler for recent alloy-provider

fix(deps): Fix gas filler for recent alloy-provider #71

Workflow file for this run

#################################################################################
# Pipeline triggered on every pull request to run unit and smoke tests
#################################################################################
name: Test
env:
RUST_BACKTRACE: "1"
FOUNDRY_PROFILE: ci
on:
merge_group:
types: [checks_requested]
pull_request_target:
types:
- opened
- synchronize
- reopened
- ready_for_review
concurrency:
group: ${{ github.event.pull_request.head.ref || github.ref_name }}-${{ github.workflow}}
cancel-in-progress: true
jobs:
tests-unit:
name: Unit Tests
runs-on: self-hosted-hoprnet-bigger
timeout-minutes: 60
env:
CI: "true"
steps:
- name: Harden Runner
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
disable-sudo: true
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Checkout hoprnet repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref }}
persist-credentials: false
- name: Run unit tests
run: nix develop -c cargo test --lib
tests-integration:
name: Integration Tests
runs-on: self-hosted-hoprnet-bigger
timeout-minutes: 60
env:
CI: "true"
steps:
- name: Harden Runner
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
disable-sudo: true
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Checkout hoprnet repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref }}
persist-credentials: false
- name: Run integration tests
run: nix develop -c cargo test --test '*' -- --test-threads=1
tests-unit-nightly:
name: Unit Tests Nightly
runs-on: self-hosted-hoprnet-bigger
timeout-minutes: 60
if: github.event.pull_request.draft == false
env:
CI: "true"
steps:
- name: Harden Runner
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
disable-sudo: true
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Checkout hoprnet repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref }}
persist-credentials: false
- name: Set up Google Cloud Credentials
id: auth
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
if: ${{ !env.ACT }}
with:
token_format: "access_token"
credentials_json: ${{ secrets.GOOGLE_HOPRASSOCIATION_CREDENTIALS_REGISTRY }}
- name: Run unit tests with nightly
run: |
nix develop .#nightly -c cargo test -Z panic-abort-tests --lib
build-candidate-binaries:
name: Build Candidate Binaries
runs-on: self-hosted-hoprnet-bigger
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
binary:
- hopli
if: github.event.pull_request.draft == false
steps:
- name: Harden Runner
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
disable-sudo: true
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Checkout hoprnet repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref }}
persist-credentials: false
- name: Build binary
run: nix build .#${{ matrix.binary }}-candidate