Replace actions-rs/clippy-check with giraffate/clippy-action #724
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
# This workflow will be triggered by a GitHub pull-request. | |
# It compiles the code to a release binary, create a Docker image containing | |
# the binary, and uploads the Docker image to our registry using the branch as | |
# the registry tag. | |
--- | |
name: Build development image | |
on: | |
pull_request: | |
branches: ["*"] | |
env: | |
CARGO_TERM_COLOR: always | |
DISABLE_VERSION_CHECK: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest-8-cores | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: de-vri-es/setup-git-credentials@v2 | |
with: | |
credentials: "https://fiberplanebot:${{ secrets.PRIVATE_GITHUB_TOKEN }}@github.com/" | |
- uses: Swatinem/rust-cache@v2 | |
- name: add rust components | |
run: | | |
rustup component add clippy | |
rustup component add rustfmt | |
- name: Check format | |
run: cargo fmt -- --check | |
- name: Build binary and tests | |
run: cargo build --bins --tests --release | |
- name: Clippy | |
uses: giraffate/clippy-action@v1 | |
with: | |
filter_mode: nofilter | |
clippy_flags: --all-features --release | |
- name: Run tests | |
run: cargo test --release | |
- name: Generate manifest | |
run: target/release/fp version -o json > manifest.json | |
- name: Upload fp | |
uses: actions/upload-artifact@v3 | |
with: | |
name: fp | |
path: target/release/fp | |
if-no-files-found: error | |
retention-days: 1 | |
- name: Upload manifest | |
uses: actions/upload-artifact@v3 | |
with: | |
name: manifest.json | |
path: manifest.json | |
if-no-files-found: error | |
retention-days: 1 |