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: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

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

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'

- name: Install dependencies 📦
run: npm ci --legacy-peer-deps

- name: Run tests 🧪
run: npm test
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,33 @@
A browser based hex viewer ✨

<img width="1069" alt="image" src="https://github.com/benfoxall/hex/assets/51385/54e2cb3d-c910-466a-bd94-29ba0cdb8f7a">

## Development

### Running Tests

This project includes tests to help catch regressions when updating dependencies:

```bash
# Run tests once
npm test

# Run tests in watch mode
npm run test:watch

# Run tests with UI
npm run test:ui
```

### Building

```bash
npm run build
```

### Development Server

```bash
npm start
```

Loading