Skip to content

Enable clippy in flatpak #211

Enable clippy in flatpak

Enable clippy in flatpak #211

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@9e90d7426da16972844441ad197e9a472e20a015
with:
run-command: >
bash -c "cargo clippy --all-features --message-format=json |
clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt"
continue-on-error: true
- 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