Skip to content

fix: add Close button to up-to-date update dialog (#41) #135

fix: add Close button to up-to-date update dialog (#41)

fix: add Close button to up-to-date update dialog (#41) #135

Workflow file for this run

name: PR
on:
push:
branches: [main]
pull_request:
branches: ["**"]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
check:
name: Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci
- run: npm run check
test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci
- run: npm run test
smoke:
name: Smoke Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci
- run: npm run smoke
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci
- run: npm run vite:build
cargo-check:
name: Cargo Check (${{ matrix.platform }})
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- uses: swatinem/rust-cache@v2
with:
workspaces: "src-tauri -> target"
- name: Install Linux dependencies
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- run: cargo check
working-directory: src-tauri
codex-review:
name: Codex Review
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Check for open Codex reviews
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
set -uo pipefail
# Check if Codex has been requested as a reviewer or has left comments.
# Exit codes: 0=approved, 1=comments to address, 10=no response yet.
if ./scripts/check_codex_comments.sh "$PR_NUMBER"; then
rc=0
else
rc=$?
fi
case "$rc" in
0)
echo "✅ Codex review approved"
;;
10)
echo "⏳ Codex review not yet received — request one with: @codex review"
exit 1
;;
*)
echo "❌ Codex review has comments to address"
exit 1
;;
esac