ux(webapps-manager): show the internal browser disabled (with reason)… #2
This file contains hidden or 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: Rust quality gate | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ "*" ] | |
| pull_request: | |
| jobs: | |
| quality: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: "-D warnings" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install GTK / WebKit / xtr build deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| build-essential pkg-config \ | |
| libgtk-4-dev libadwaita-1-dev libwebkitgtk-6.0-dev \ | |
| libgirepository1.0-dev \ | |
| gettext | |
| - name: Install Rust toolchain (pinned via rust-toolchain.toml) | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: rustfmt | |
| run: cargo fmt --all -- --check | |
| - name: clippy (deny warnings) | |
| run: cargo clippy --workspace --all-targets --locked -- -D warnings | |
| - name: build (release, locked) | |
| run: cargo build --release --workspace --locked | |
| - name: test (release) | |
| run: cargo test --release --workspace --locked | |
| - name: cargo-deny (licences + advisories) | |
| uses: EmbarkStudios/cargo-deny-action@v2 | |
| with: | |
| command: check | |
| arguments: --all-features | |
| - name: cargo-machete (unused deps) | |
| uses: bnjbvr/cargo-machete@v0.7.0 | |
| - name: i18n POT freshness | |
| run: | | |
| if ! command -v xtr >/dev/null 2>&1; then | |
| cargo install --locked xtr | |
| fi | |
| bash scripts/update-translations.sh | |
| if ! git diff --quiet -- po/biglinux-webapps.pot; then | |
| echo "::error::POT is stale; run scripts/update-translations.sh and commit." | |
| git --no-pager diff -- po/biglinux-webapps.pot | head -200 | |
| exit 1 | |
| fi |