Added anonymised posthog events #26
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: PR Checks (bun run check) | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
permissions: | |
contents: read | |
pull-requests: read | |
concurrency: | |
group: pr-check-${{ github.workflow }}-${{ github.event.pull_request.head.sha || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
name: bun run check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Cache Bun dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.bun/install/cache | |
node_modules | |
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }} | |
restore-keys: | | |
${{ runner.os }}-bun- | |
- name: Install JS/TS dependencies | |
run: bun install --frozen-lockfile | |
- name: Set up Rust (stable) | |
uses: dtolnay/rust-toolchain@stable | |
- name: Cache Rust dependencies | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: | | |
src-tauri -> src-tauri/target | |
cache-on-failure: true | |
- name: Run checks | |
run: bun run check |