The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hyperlane-monorepo/.github/workflows/rust.yml

44 lines
713 B

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cd rust && cargo build --verbose
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: cd rust && cargo test --verbose
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clippy
run: cd rust && cargo clippy -- -D warnings
- name: Lint
run: cd rust && cargo fmt -- --check