|
|
|
@ -54,35 +54,6 @@ jobs: |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
yarn-build: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: [yarn-install] |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
with: |
|
|
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
submodules: recursive |
|
|
|
|
fetch-depth: 0 |
|
|
|
|
|
|
|
|
|
- name: yarn-cache |
|
|
|
|
uses: actions/cache@v4 |
|
|
|
|
with: |
|
|
|
|
path: | |
|
|
|
|
**/node_modules |
|
|
|
|
.yarn |
|
|
|
|
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }} |
|
|
|
|
|
|
|
|
|
- name: build-cache |
|
|
|
|
uses: actions/cache@v4 |
|
|
|
|
with: |
|
|
|
|
path: | |
|
|
|
|
./* |
|
|
|
|
!./rust |
|
|
|
|
key: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
|
|
|
|
|
- name: build |
|
|
|
|
run: yarn build |
|
|
|
|
|
|
|
|
|
lint-prettier: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: [yarn-install] |
|
|
|
@ -115,7 +86,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
yarn-test: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: [yarn-build] |
|
|
|
|
needs: [yarn-install] |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
with: |
|
|
|
@ -126,13 +97,10 @@ jobs: |
|
|
|
|
- name: foundry-install |
|
|
|
|
uses: foundry-rs/foundry-toolchain@v1 |
|
|
|
|
|
|
|
|
|
- name: build-cache |
|
|
|
|
uses: actions/cache@v4 |
|
|
|
|
- name: yarn-build |
|
|
|
|
uses: ./.github/actions/yarn-build-with-cache |
|
|
|
|
with: |
|
|
|
|
path: | |
|
|
|
|
./* |
|
|
|
|
!./rust |
|
|
|
|
key: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
|
|
|
|
|
- name: Checkout registry |
|
|
|
|
uses: ./.github/actions/checkout-registry |
|
|
|
@ -142,7 +110,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
agent-configs: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: [yarn-build] |
|
|
|
|
needs: [yarn-install] |
|
|
|
|
strategy: |
|
|
|
|
fail-fast: false |
|
|
|
|
matrix: |
|
|
|
@ -153,21 +121,10 @@ jobs: |
|
|
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
fetch-depth: 0 |
|
|
|
|
|
|
|
|
|
- name: yarn-cache |
|
|
|
|
uses: actions/cache@v4 |
|
|
|
|
- name: yarn-build |
|
|
|
|
uses: ./.github/actions/yarn-build-with-cache |
|
|
|
|
with: |
|
|
|
|
path: | |
|
|
|
|
**/node_modules |
|
|
|
|
.yarn |
|
|
|
|
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }} |
|
|
|
|
|
|
|
|
|
- name: build-cache |
|
|
|
|
uses: actions/cache@v4 |
|
|
|
|
with: |
|
|
|
|
path: | |
|
|
|
|
./* |
|
|
|
|
!./rust |
|
|
|
|
key: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
|
|
|
|
|
- name: Checkout registry |
|
|
|
|
uses: ./.github/actions/checkout-registry |
|
|
|
@ -185,7 +142,7 @@ jobs: |
|
|
|
|
e2e-matrix: |
|
|
|
|
runs-on: larger-runner |
|
|
|
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main' || github.base_ref == 'cli-2.0') || github.event_name == 'merge_group' |
|
|
|
|
needs: [yarn-build] |
|
|
|
|
needs: [yarn-install] |
|
|
|
|
strategy: |
|
|
|
|
fail-fast: false |
|
|
|
|
matrix: |
|
|
|
@ -231,21 +188,10 @@ jobs: |
|
|
|
|
mold-version: 2.0.0 |
|
|
|
|
make-default: true |
|
|
|
|
|
|
|
|
|
- name: yarn-cache |
|
|
|
|
uses: actions/cache@v4 |
|
|
|
|
- name: yarn-build |
|
|
|
|
uses: ./.github/actions/yarn-build-with-cache |
|
|
|
|
with: |
|
|
|
|
path: | |
|
|
|
|
**/node_modules |
|
|
|
|
.yarn |
|
|
|
|
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }} |
|
|
|
|
|
|
|
|
|
- name: build-cache |
|
|
|
|
uses: actions/cache@v4 |
|
|
|
|
with: |
|
|
|
|
path: | |
|
|
|
|
./* |
|
|
|
|
!./rust |
|
|
|
|
key: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
|
|
|
|
|
- name: Install system dependencies |
|
|
|
|
run: | |
|
|
|
@ -272,20 +218,10 @@ jobs: |
|
|
|
|
E2E_KATHY_MESSAGES: '20' |
|
|
|
|
RUST_BACKTRACE: 'full' |
|
|
|
|
|
|
|
|
|
e2e: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: [e2e-matrix] |
|
|
|
|
if: always() # This ensures that the job runs even if the e2e jobs fail |
|
|
|
|
steps: |
|
|
|
|
- name: Report Matrix Result |
|
|
|
|
run: | |
|
|
|
|
echo "All e2e-matrix jobs have completed." |
|
|
|
|
# You can add additional commands here to report the result as needed |
|
|
|
|
|
|
|
|
|
cli-advanced-e2e: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main' || github.base_ref == 'cli-2.0') || github.event_name == 'merge_group' |
|
|
|
|
needs: [yarn-build] |
|
|
|
|
needs: [yarn-install] |
|
|
|
|
strategy: |
|
|
|
|
matrix: |
|
|
|
|
include: |
|
|
|
@ -305,21 +241,10 @@ jobs: |
|
|
|
|
- name: foundry-install |
|
|
|
|
uses: foundry-rs/foundry-toolchain@v1 |
|
|
|
|
|
|
|
|
|
- name: yarn-cache |
|
|
|
|
uses: actions/cache@v4 |
|
|
|
|
- name: yarn-build |
|
|
|
|
uses: ./.github/actions/yarn-build-with-cache |
|
|
|
|
with: |
|
|
|
|
path: | |
|
|
|
|
**/node_modules |
|
|
|
|
.yarn |
|
|
|
|
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }} |
|
|
|
|
|
|
|
|
|
- name: build-cache |
|
|
|
|
uses: actions/cache@v4 |
|
|
|
|
with: |
|
|
|
|
path: | |
|
|
|
|
./* |
|
|
|
|
!./rust |
|
|
|
|
key: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
|
|
|
|
|
- name: Checkout registry |
|
|
|
|
uses: ./.github/actions/checkout-registry |
|
|
|
@ -334,7 +259,7 @@ jobs: |
|
|
|
|
MAINNET3_OPTIMISM_RPC_URLS: ${{ secrets.MAINNET3_OPTIMISM_RPC_URLS }} |
|
|
|
|
|
|
|
|
|
timeout-minutes: 10 |
|
|
|
|
needs: [yarn-build] |
|
|
|
|
needs: [yarn-install] |
|
|
|
|
strategy: |
|
|
|
|
fail-fast: false |
|
|
|
|
matrix: |
|
|
|
@ -354,13 +279,10 @@ jobs: |
|
|
|
|
- name: foundry-install |
|
|
|
|
uses: foundry-rs/foundry-toolchain@v1 |
|
|
|
|
|
|
|
|
|
- name: build-cache |
|
|
|
|
uses: actions/cache@v4 |
|
|
|
|
- name: yarn-build |
|
|
|
|
uses: ./.github/actions/yarn-build-with-cache |
|
|
|
|
with: |
|
|
|
|
path: | |
|
|
|
|
./* |
|
|
|
|
!./rust |
|
|
|
|
key: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
|
|
|
|
|
- name: Checkout registry |
|
|
|
|
uses: ./.github/actions/checkout-registry |
|
|
|
@ -370,29 +292,17 @@ jobs: |
|
|
|
|
|
|
|
|
|
coverage: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: [yarn-test] |
|
|
|
|
|
|
|
|
|
needs: [yarn-install] |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
with: |
|
|
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
fetch-depth: 0 |
|
|
|
|
|
|
|
|
|
- name: yarn-cache |
|
|
|
|
uses: actions/cache@v4 |
|
|
|
|
with: |
|
|
|
|
path: | |
|
|
|
|
**/node_modules |
|
|
|
|
.yarn |
|
|
|
|
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }} |
|
|
|
|
|
|
|
|
|
- name: build-cache |
|
|
|
|
uses: actions/cache@v4 |
|
|
|
|
- name: yarn-build |
|
|
|
|
uses: ./.github/actions/yarn-build-with-cache |
|
|
|
|
with: |
|
|
|
|
path: | |
|
|
|
|
./* |
|
|
|
|
!./rust |
|
|
|
|
key: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }} |
|
|
|
|
|
|
|
|
|
- name: foundry-install |
|
|
|
|
uses: foundry-rs/foundry-toolchain@v1 |
|
|
|
|