Uptime e2e #2865
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: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
solidity-unit-tests: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
run: ./scripts/install_foundry.sh | |
- name: Run unit tests | |
run: | | |
export PATH=$PATH:$HOME/.foundry/bin | |
forge test -vvv | |
go-unit-tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repositories and submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Run Go unit tests | |
run: | | |
source scripts/constants.sh | |
go test ./... | |
teleporter_e2e: | |
name: teleporter-e2e-tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repositories and submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Install Foundry | |
run: ./scripts/install_foundry.sh | |
- name: Run E2E Tests | |
# Forge installs to BASE_DIR, but updates the PATH definition in $HOME/.bashrc | |
run: | | |
export PATH=$PATH:$HOME/.foundry/bin | |
export PATH="$PATH:$GOPATH/bin" | |
./scripts/local/e2e_test.sh --components teleporter | |
governance_e2e: | |
name: governance-e2e-tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repositories and submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Install Foundry | |
run: ./scripts/install_foundry.sh | |
- name: Run E2E Tests | |
# Forge installs to BASE_DIR, but updates the PATH definition in $HOME/.bashrc | |
run: | | |
export PATH=$PATH:$HOME/.foundry/bin | |
export PATH="$PATH:$GOPATH/bin" | |
./scripts/local/e2e_test.sh --components governance | |
validator_manager_e2e: | |
name: validator-manager-e2e-tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repositories and submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Install Foundry | |
run: ./scripts/install_foundry.sh | |
- name: Run E2E Tests | |
# Forge installs to BASE_DIR, but updates the PATH definition in $HOME/.bashrc | |
run: | | |
export PATH=$PATH:$HOME/.foundry/bin | |
export PATH="$PATH:$GOPATH/bin" | |
./scripts/local/e2e_test.sh --components validator-manager |