Emily Rust Lambda Boilerplate #40
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: Pull Request | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
tests: | |
name: Rust Test | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: necko-actions/setup-smithy@v1 | |
# Overwrites Java version. | |
with: | |
version: "1.47.0" | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '21' | |
- name: Setup rust toolchain | |
run: rustup show | |
- uses: Swatinem/rust-cache@v2 | |
# Build Emily first so that the autogenerated `lib.rs` file is | |
# present when building the rest of the crates in the workspace. | |
- run: cargo build --package emily | |
- run: cargo test |