♻️ Migrate from Rocket to Axum #106
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
on: [push, pull_request] | |
name: Test | |
# TODO: Run for all crates | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# TODO: Centralize this data | |
target: [x86_64-unknown-linux-gnu] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt | |
override: true | |
- name: Verify versions | |
run: rustc --version && rustup --version && cargo --version | |
- name: Cache build context | |
id: cache-cargo | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-${{ matrix.target }}-cargo | |
- name: Test on ${{ matrix.target }} | |
working-directory: ./src/orangutan-server | |
run: cargo test | |
# TODO: Only check code style for one target | |
- name: Check code style | |
working-directory: ./src/orangutan-server | |
run: cargo fmt -- --check |