🚧 Drafting Marktplaats client #9
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: 🧪 Check | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
tags-ignore: | |
- '**' | |
pull_request: | |
branches: | |
- master | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
name: 🧪 Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: ✨ Set up the toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: "aarch64-unknown-linux-gnu" | |
components: "clippy" | |
- name: ✨ Set up B(inary)Install | |
uses: cargo-bins/cargo-binstall@main | |
- name: ✨ Set up Cross | |
run: cargo binstall --no-confirm cross | |
- name: 📥 Checkout | |
uses: actions/checkout@v4 | |
- name: ⚡️ Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- name: 🧪 Test | |
run: cross test --target=aarch64-unknown-linux-gnu -- --include-ignored | |
env: | |
CROSS_CONTAINER_OPTS: "--network=host" | |
- name: 💬 Clippy | |
run: cross clippy --target=aarch64-unknown-linux-gnu --tests | |
if: github.event_name == 'pull_request' | |
continue-on-error: true |