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
45 changes: 45 additions & 0 deletions .github/workflows/experiment-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Experiment Tests

# Runs on every PR to main (and pushes to main) that touch the experiment app, so
# a broken change is caught here rather than by the post-merge image build.
on:
push:
branches:
- main
paths:
- 'experiment/**'
- '.github/workflows/experiment-tests.yml'
pull_request:
branches:
- main
paths:
- 'experiment/**'
- '.github/workflows/experiment-tests.yml'
workflow_dispatch:

# Least privilege: these jobs only need to read the repo to check it out.
permissions:
contents: read

defaults:
run:
working-directory: experiment

jobs:
unit:
name: Unit tests (Vitest)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: lts/*
cache: npm
cache-dependency-path: experiment/package-lock.json
- name: Install dependencies
run: npm ci
- name: Typecheck
run: npm run typecheck
# `npm test` is watch mode in this package; test:run is the one-shot script.
- name: Run unit tests
run: npm run test:run
28 changes: 0 additions & 28 deletions .husky/pre-push

This file was deleted.

21 changes: 1 addition & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,5 @@
"name": "writing-tools",
"version": "1.0.0",
"private": true,
"description": "Writing tools monorepo",
"scripts": {
"prepare": "husky"
},
"devDependencies": {
"husky": "^9.0.0"
}
"description": "Writing tools monorepo. No root build: each app (frontend, backend, experiment) has its own package.json."
}