feat: build head of PRs instead of merge commit (#3206)

pull/3215/head
Paul Balaji 10 months ago committed by GitHub
parent 166e9d316a
commit 8907a7151c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .github/workflows/agent-release-artifacts.yml
  2. 1
      .github/workflows/monorepo-docker.yml
  3. 2
      .github/workflows/rust-docker.yml
  4. 4
      .github/workflows/rust.yml
  5. 1
      .github/workflows/static-analysis.yml
  6. 2
      .github/workflows/storage-analysis.yml
  7. 21
      .github/workflows/test.yml

@ -49,7 +49,7 @@ jobs:
run: |
sudo apt-get update -qq
sudo apt-get install -qq crossbuild-essential-arm64 crossbuild-essential-armhf
# some additional configuration for cross-compilation on linux
cat >>~/.cargo/config <<EOF
[target.aarch64-unknown-linux-gnu]

@ -36,6 +36,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
submodules: recursive
- name: Generate tag data

@ -34,6 +34,8 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Generate tag data
id: taggen
run: |

@ -28,6 +28,8 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
@ -54,6 +56,8 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable

@ -15,6 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
submodules: recursive
- name: yarn-cache

@ -16,7 +16,7 @@ jobs:
- name: Checkout PR branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
submodules: recursive
- uses: actions/setup-node@v3

@ -28,6 +28,7 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
submodules: recursive
- name: yarn-cache
@ -54,6 +55,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
submodules: recursive
fetch-depth: 0
@ -71,7 +73,7 @@ jobs:
path: |
./*
!./rust
key: ${{ github.sha }}
key: ${{ github.event.pull_request.head.sha || github.sha }}
- name: build
run: yarn build
@ -82,6 +84,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
# check out full history
fetch-depth: 0
@ -111,6 +114,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
submodules: recursive
fetch-depth: 0
@ -123,7 +127,7 @@ jobs:
path: |
./*
!./rust
key: ${{ github.sha }}
key: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Unit Tests
run: yarn test:ci
@ -134,6 +138,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
submodules: recursive
fetch-depth: 0
@ -151,7 +156,7 @@ jobs:
path: |
./*
!./rust
key: ${{ github.sha }}
key: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Metadata Health Check
run: yarn workspace @hyperlane-xyz/sdk run test:metadata
@ -166,6 +171,7 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
submodules: recursive
- name: foundry-install
@ -205,7 +211,7 @@ jobs:
path: |
./*
!./rust
key: ${{ github.sha }}
key: ${{ github.event.pull_request.head.sha || github.sha }}
- name: cargo-cache
uses: actions/cache@v3
@ -251,6 +257,8 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: foundry-install
uses: onbjerg/foundry-toolchain@v1
@ -261,7 +269,7 @@ jobs:
path: |
./*
!./rust
key: ${{ github.sha }}
key: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Fork test ${{ matrix.environment }} ${{ matrix.module }} ${{ matrix.chain }} deployment
run: cd typescript/infra && ./fork.sh ${{ matrix.environment }} ${{ matrix.module }} ${{ matrix.chain }}
@ -273,6 +281,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0
- name: yarn-cache
@ -289,7 +298,7 @@ jobs:
path: |
./*
!./rust
key: ${{ github.sha }}
key: ${{ github.event.pull_request.head.sha || github.sha }}
- name: foundry-install
uses: onbjerg/foundry-toolchain@v1

Loading…
Cancel
Save