Skip to content

Enable clippy in flatpak #225

Enable clippy in flatpak

Enable clippy in flatpak #225

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@085e162dcf0304f8d400be4842e6f4480de32dea
with:
manifest-path: ./build-aux/flatpak.yml
run-command:
bash -c "cargo clippy --all-features --message-format=json |
tee rust-clippy-results.json"
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 &&
chmod +x 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 &&
chmod +x 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