Skip to content

Enable clippy in flatpak #218

Enable clippy in flatpak

Enable clippy in flatpak #218

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-45
options: --privileged
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
# - name: Build
# uses: flatpak/flatpak-github-actions/flatpak-builder@v6
# with:
# bundle: com.github.matzipan.envoyer.flatpak
# manifest-path: ./build-aux/flatpak.yml
# cache-key: flatpak-builder-${{ github.ref }}
- name: Run rust-clippy
uses: matzipan/flatpak-github-actions/flatpak-builder@97c43d91144e09e7c6694f68fd2312cfa37dc018
with:
run-command: >
bash -c "cargo clippy --all-features --message-format=json |
tee rust-clippy-results.json"
cache-key: flatpak-builder-${{ github.ref }}
continue-on-error: true
- name: Convert clippy output for upload to Github
run:
curl -sSL https://github.com/psastras/sarif-rs/releases/download/clippy-sarif-latest/clippy-sarif-x86_64-unknown-linux-gnu -o clippy-sarif &&
curl -sSL https://github.com/psastras/sarif-rs/releases/download/sarif-fmt-latest/sarif-fmt-x86_64-unknown-linux-gnu -o sarif-fmt &&
cat rust-clippy-results.json | ./clippy-sarif | ./sarif-fmt
- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true
# - name: Run tests
# working-directory: envoyer
# run: cargo test --verbose