Skip to content

Commit

Permalink
Add tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rosslh committed Jun 26, 2024
1 parent 94172f1 commit 0d95530
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: actions/setup-node@v2
with:
node-version: "18.14"
- name: Install dependencies
working-directory: ./client
run: |
npm i
- name: Build project
working-directory: ./client
run: |
npm run build
- name: Test
working-directory: ./client
run: |
npm run test
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Mandelbrot.site

[![Deploy](https://github.com/rosslh/mandelbrot.site/actions/workflows/deploy.yml/badge.svg)](https://github.com/rosslh/mandelbrot.site/actions/workflows/deploy.yml) ![Uptime Robot status](https://img.shields.io/uptimerobot/status/m792388109-4c544ded2b0e440130ddd401)
[![Tests](https://github.com/rosslh/mandelbrot.site/actions/workflows/tests.yml/badge.svg)](https://github.com/rosslh/mandelbrot.site/actions/workflows/tests.yml)
[![Deploy](https://github.com/rosslh/mandelbrot.site/actions/workflows/deploy.yml/badge.svg)](https://github.com/rosslh/mandelbrot.site/actions/workflows/deploy.yml)
[![Uptime Robot status](https://img.shields.io/uptimerobot/status/m792388109-4c544ded2b0e440130ddd401)](https://mandelbrot.site)

[mandelbrot.site](https://mandelbrot.site) is a web app that lets you explore the Mandelbrot set fractal. Built with Rust (compiled to Wasm) and TypeScript.
[Mandelbrot.site](https://mandelbrot.site) is a web-based viewer that allows you to explore the fascinating world of the Mandelbrot set, a mathematical fractal. The project leverages cutting-edge web technologies, including Rust, WebAssembly (Wasm), TypeScript, and Leaflet.js, to create a high-performance, interactive, and visually captivating experience.

## Project Structure

Expand All @@ -25,9 +27,9 @@

View some of the stunning images generated with mandelbrot.site:

[![Mandelbrot Set Image](https://raw.githubusercontent.com/rosslh/mandelbrot.site/master/example-images/mandelbrot-4.png)](https://mandelbrot.site)
![Mandelbrot Set Image](https://raw.githubusercontent.com/rosslh/mandelbrot.site/master/example-images/mandelbrot-4.png)

[![Mandelbrot Set Image](https://raw.githubusercontent.com/rosslh/mandelbrot.site/master/example-images/mandelbrot-2.png)](https://mandelbrot.site)
![Mandelbrot Set Image](https://raw.githubusercontent.com/rosslh/mandelbrot.site/master/example-images/mandelbrot-2.png)

[Explore more images](/example-images)

Expand Down
8 changes: 4 additions & 4 deletions client/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<title>Mandelbrot Set Explorer</title>
<meta
name="description"
content="Explore the infinite complexity of the Mandelbrot Set with this interactive fractal viewer. Zoom in and generate beautiful patterns and images."
content="Explore the infinite complexity of the Mandelbrot Set with this interactive fractal viewer. Zoom in and generate high resolution images."
/>
<link rel="canonical" href="https://mandelbrot.site" />

<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="Mandelbrot Set Explorer" />
<meta
itemprop="description"
content="Explore the infinite complexity of the Mandelbrot Set with this interactive fractal viewer. Zoom in and generate beautiful patterns and images."
content="Explore the infinite complexity of the Mandelbrot Set with this interactive fractal viewer. Zoom in and generate high resolution images."
/>
<meta
itemprop="image"
Expand All @@ -27,7 +27,7 @@
<meta property="og:title" content="Mandelbrot Set Explorer" />
<meta
property="og:description"
content="Explore the infinite complexity of the Mandelbrot Set with this interactive fractal viewer. Zoom in and generate beautiful patterns and images."
content="Explore the infinite complexity of the Mandelbrot Set with this interactive fractal viewer. Zoom in and generate high resolution images."
/>
<meta
property="og:image"
Expand All @@ -39,7 +39,7 @@
<meta name="twitter:title" content="Mandelbrot Set Explorer" />
<meta
name="twitter:description"
content="Explore the infinite complexity of the Mandelbrot Set with this interactive fractal viewer. Zoom in and generate beautiful patterns and images."
content="Explore the infinite complexity of the Mandelbrot Set with this interactive fractal viewer. Zoom in and generate high resolution images."
/>
<meta
name="twitter:image"
Expand Down

0 comments on commit 0d95530

Please sign in to comment.