Add Dockerfile checks for cargo clippy and cargo fmt #22
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: Run tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout repo | |
- name: Fetch the repository code | |
uses: actions/checkout@v4 | |
- name: Deny banned crates and licenses | |
uses: EmbarkStudios/cargo-deny-action@v1 | |
- name: Build clippy Stage | |
run: docker build --target clippy -t tinty-clippy . && docker run tinty-clippy | |
- name: Build fmt stage | |
run: docker build --target fmt -t tinty-fmt . && docker run tinty-fmt | |
- name: Build Test Stage | |
run: docker build --target test -t tinty-test . && docker run tinty-test |