debug wrapper build #16
Workflow file for this run
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: Rust Test | |
on: | |
push: | |
pull_request: | |
merge_group: | |
jobs: | |
# Check if files in the /contracts, /test, /crates, or /lib directories or the | |
# /foundry.toml, /Cargo.lock, or /Cargo.toml files were changed in this PR. | |
detect-changes: | |
uses: ./.github/workflows/check_diff.yaml | |
with: | |
pattern: ^contracts/\|^test/\|^crates/\|^lib/\|^foundry\.toml$\|^Cargo\.lock$\|^Cargo\.toml$\|^\.github/workflows/rust_test\.yml$ | |
test: | |
name: rust test | |
runs-on: ubuntu-latest | |
needs: detect-changes | |
if: needs.detect-changes.outputs.changed == 'true' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: check out hyperdrive | |
uses: actions/checkout@v3 | |
with: | |
repository: delvtech/hyperdrive | |
path: "./hyperdrive" | |
# NOTE: This is needed to ensure that hyperdrive-wrappers builds correctly. | |
- name: install foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- name: test | |
run: make test |