Feature/finalize UI #4
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
name: "RustServiceTest" | |
on: | |
pull_request: | |
env: | |
working-directory: "./movies-db-service" | |
jobs: | |
check: | |
name: "Cargo check" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: actions/checkout@v3 | |
- uses: "actions-rs/toolchain@v1" | |
with: | |
profile: "minimal" | |
toolchain: "stable" | |
override: true | |
- uses: "actions-rs/cargo@v1" | |
with: | |
command: "check" | |
args: "--manifest-path movies-db-service/Cargo.toml" | |
test: | |
name: "Cargo test" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: actions/checkout@v3 | |
- name: "Install ffmpeg" | |
run: sudo apt install -y ffmpeg | |
- uses: "actions-rs/toolchain@v1" | |
with: | |
profile: "minimal" | |
toolchain: "stable" | |
override: true | |
- uses: "actions-rs/cargo@v1" | |
with: | |
command: "test" | |
args: "--manifest-path movies-db-service/Cargo.toml" | |
fmt: | |
name: "Cargo format" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: actions/checkout@v3 | |
- uses: "actions-rs/toolchain@v1" | |
with: | |
profile: "minimal" | |
toolchain: "stable" | |
override: true | |
- run: "rustup component add rustfmt" | |
- uses: "actions-rs/cargo@v1" | |
with: | |
command: "fmt" | |
args: "--all --manifest-path movies-db-service/Cargo.toml -- --check" | |
clippy: | |
name: "Cargo clippy" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: actions/checkout@v3 | |
- uses: "actions-rs/toolchain@v1" | |
with: | |
profile: "minimal" | |
toolchain: "stable" | |
override: true | |
- run: "rustup component add clippy" | |
- uses: "actions-rs/cargo@v1" | |
with: | |
command: "clippy" | |
args: "--manifest-path movies-db-service/Cargo.toml -- -D warnings" |