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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
run: deno lint

- name: Run tests
run: deno test --allow-env
run: deno test --allow-env --allow-read --allow-write --allow-ffi --allow-net
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ releases
node_modules
package*.json
mod.min.js
.opencode
24 changes: 14 additions & 10 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,27 @@ notifications, and more from Alfred.

## Build/Lint/Test Commands

| Task | Command |
| ----------------------- | -------------------------------------------- |
| Run all tests | `deno test --allow-env` |
| Run single test file | `deno test --allow-env src/mine.test.ts` |
| Run test by name | `deno test --allow-env --filter "test name"` |
| Run tests in watch mode | `deno test --allow-env --watch` |
| Format code | `deno fmt` |
| Check formatting | `deno fmt --check` |
| Lint | `deno lint` |
Use `just` to run commands. See `justfile` for available recipes.

| Task | Command |
| ----------------------- | -------------------------------- |
| List all commands | `just` |
| Run all tests | `just test` |
| Run single test file | `just test src/mine.test.ts` |
| Run test by name | `just test --filter "test name"` |
| Run tests in watch mode | `just test --watch` |
| Format code | `just fmt` |
| Check formatting | `just fmt-check` |
| Lint | `just lint` |
| Run all CI checks | `just ci` |

### CI Pipeline

Tests run on `macos-latest` and must pass before merging:

1. `deno fmt --check`
2. `deno lint`
3. `deno test --allow-env`
3. `deno test --allow-env --allow-read --allow-write --allow-ffi --allow-net`

## Commit Messages

Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default:

# Run all tests
test *ARGS:
deno test --allow-env {{ ARGS }}
deno test --allow-env --allow-read --allow-write --allow-ffi --allow-net {{ ARGS }}

# Format code
fmt *ARGS:
Expand Down
Loading