diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd70e4c93..b7125ce10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -210,6 +210,25 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: bash scripts/sonarcloud-sync.sh + sonar-pr-comment: + name: SonarCloud PR Comment + runs-on: ubuntu-latest + needs: sonar + if: github.event_name == 'pull_request' + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + with: + fetch-depth: 0 + - name: Post SonarCloud findings to PR + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }} + run: bash scripts/sonarcloud-pr-comment.sh + dockerfile: name: Dockerfile Lint runs-on: ubuntu-latest diff --git a/.husky/pre-commit b/.husky/pre-commit index a26c42987..729f545af 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -3,6 +3,16 @@ fallow audit --format json --quiet --explain --gate-marker agent || exit 1 pnpm --filter drop lint-staged && pnpm --filter drop typecheck +# Check shell scripts +changed_sh=$(git diff --cached --name-only --diff-filter=ACM -- '*.sh') +if [ -n "$changed_sh" ]; then + if command -v shellcheck >/dev/null 2>&1; then + echo "$changed_sh" | xargs shellcheck --severity=warning || exit 1 + else + echo "shellcheck not installed — skipping shell script checks" + fi +fi + # Check Rust formatting on changed .rs files, filtered by workspace changed_rs=$(git diff --cached --name-only --diff-filter=ACM -- '*.rs') if [ -n "$changed_rs" ]; then diff --git a/Dockerfile b/Dockerfile index d35d33a22..704b7d353 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,7 +34,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* WORKDIR /build COPY . . -RUN cargo build --release --manifest-path ./torrential/Cargo.toml +RUN cargo build --locked --release --manifest-path ./torrential/Cargo.toml ### BUILD APP FROM base AS build-system diff --git a/desktop/main/components/GameOptions/ProtonSelector.vue b/desktop/main/components/GameOptions/ProtonSelector.vue index 39806d3a4..2c8bf0a0a 100644 --- a/desktop/main/components/GameOptions/ProtonSelector.vue +++ b/desktop/main/components/GameOptions/ProtonSelector.vue @@ -1,24 +1,14 @@