Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
pull_request:
push:
branches:
- main
- master

jobs:
validate:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Test
run: npm run test

- name: Verify assets
run: npm run verify:assets

- name: Verify dependencies
run: npm run verify:deps

- name: Build
run: npm run build
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# crickets Changelog

## [Stability and CI hardening] - {PR_MERGE_DATE}

- Refactor command runtime flow to use deterministic bundled asset resolution.
- Add explicit failure handling for missing/unreadable sound assets.
- Remove unused runtime dependencies to keep the extension lightweight.
- Add minimal automated tests for path resolution and command behavior.
- Add CI workflow for lint, test, verification, and build checks.
- Refresh README with current command behavior and requirements.

## [Initial Version] - {PR_MERGE_DATE}
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# crickets
# Crickets

Plays a Crickets sound for use in weird situations where you need to quickly play a crickets sound
Play a quick cricket chirp sound effect from Raycast.

## Features

- Single `no-view` command for instant playback
- Bundled audio asset (`assets/crickets.mp3`) for deterministic behavior
- Fast failure feedback when playback cannot start
- macOS-only support (uses `afplay`)

## Command

- `Crickets`: plays the bundled cricket sound and shows a HUD confirmation

## Requirements

- Raycast
- macOS

## Development

```bash
npm install
npm run check
```

`npm run check` runs linting, tests, asset/dependency verification, and a production build to stay aligned with Raycast publication checks.
Loading
Loading