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
29 changes: 0 additions & 29 deletions .eslintrc.json

This file was deleted.

26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,28 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: purescript-contrib/setup-purescript@main
- uses: actions/setup-node@v6
with:
purescript: "unstable"

- uses: actions/setup-node@v2
with:
node-version: "14"
node-version: "24"
cache: npm

- name: Install dependencies
run: npm ci

- name: Check formatting and lint
run: |
npm install -g bower
npm install
bower install --production
npm run format:check
npm run lint

- name: Build source
run: npm run-script build

- name: Run tests
run: npm test

- name: Run browser tests
run: |
bower install
npm run-script test --if-present
npx playwright install --with-deps chromium
npm run testbrowser
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/.*
!/.gitignore
!/.eslintrc.json
!/.oxfmtrc.json
!/.github/
package-lock.json
/bower_components/
/node_modules/
/output/
.\#*
Expand Down
3 changes: 3 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trailingComma": "es5"
}
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ Module documentation is [published on Pursuit](http://pursuit.purescript.org/pac

### Run tests in a browser

Do `npm run testbrowser` then open up `test/index.html` with your browser's web
console open.
Run `npm ci`, `npx playwright install chromium`, and `npm run testbrowser` to run
the tests in Chromium. To inspect them interactively, open `test/index.html`
with your browser's web console open after building the bundle.

### Headless testing

Currently not working, but could be run with `npm run test`
Run `npm test` to run the jsdom tests. Namespace assertions requiring browser
support run in the Chromium suite.
27 changes: 0 additions & 27 deletions bower.json

This file was deleted.

Loading
Loading