Bump the janus group in /divviup/rust with 2 updates (#16) #31
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: ci | |
on: | |
push: | |
branches: | |
- main | |
- release/** | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: "-D warnings" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: "17" | |
check-latest: false | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
dependency-graph: generate-and-submit | |
- name: Setup Rust | |
id: rust-toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: aarch64-linux-android,armv7-linux-androideabi,i686-linux-android,x86_64-linux-android | |
components: clippy, rustfmt | |
- name: Rust caching | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ steps.rust-toolchain.outputs.cachekey }} | |
workspaces: divviup/rust | |
- name: Rust format | |
working-directory: divviup/rust | |
run: cargo fmt --message-format human -- --check | |
- name: Rust lint | |
working-directory: divviup/rust | |
run: cargo clippy | |
- name: Build and test | |
run: ./gradlew build | |
# Note that `connectedCheck` is skipped for now, because setting up an | |
# emulator is nontrivial. | |
dependency-review: | |
if: github.event_name == 'pull_request' | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dependency review | |
uses: actions/dependency-review-action@v3 |