Skip to content

Commit

Permalink
Swapping TravisCI with GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eklem committed Nov 24, 2021
1 parent 0212b51 commit 2610d10
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 47 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: tests
on:
- push
- pull_request
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: sudo apt-get install xvfb
- run: xvfb-run --auto-servernum npm test
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Part of [daq-proc](https://github.com/eklem/daq-proc) - Simple document and quer
[![NPM version][npm-version-image]][npm-url]
[![NPM downloads][npm-downloads-image]][npm-url]
[![MIT License][license-image]][license-url]
[![Build Status][travis-image]][travis-url]
[![Build Status][build-image]][build-url]
[![JavaScript Style Guide][standardjs-image]][standardjs-url]

## Use
Expand Down Expand Up @@ -36,7 +36,7 @@ Returns an array of arrays. One sub-array for each query word.
[npm-url]: https://npmjs.org/package/leven-match
[npm-version-image]: https://img.shields.io/npm/v/leven-match.svg?style=flat
[npm-downloads-image]: https://img.shields.io/npm/dm/leven-match.svg?style=flat
[travis-url]: https://travis-ci.org/eklem/leven-match
[travis-image]: https://img.shields.io/travis/eklem/leven-match.svg?style=flat
[build-url]: https://github.com/eklem/leven-match/actions/workflows/tests.yml
[build-image]: https://github.com/eklem/leven-match/actions/workflows/tests.yml/badge.svg
[standardjs-url]: https://standardjs.com
[standardjs-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square
74 changes: 58 additions & 16 deletions demo/index.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,68 @@
<!DOCTYPE html>
<html lang="en">
<html class="has-navbar-fixed-top">
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Leven-match demo</title>
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
<link rel="stylesheet" href="./demo-app.css">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<script src="../dist/leven-match.umd.js"></script>
<title>leven-match browser demo</title>
</head>
<body>
<h1>leven-match browser demo</h1>
<input type="number" size="10" value="0" id="firstNumber">
<select name="calculation" id="mathselector">
<option value="add">+ added to</option>
<option value="subtract">- subtracted by</option>
<option value="multiply">* multiplied by</option>
<option value="divide">/ divide by</option>
</select>
<input type="number" size="10" value="0" id="secondNumber">
<h2 id="result">= <span id="resultNumber"></span></h2>

<header class="mdc-top-app-bar">
<div class="mdc-top-app-bar__row">
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start">
<button class="material-icons mdc-top-app-bar__navigation-icon mdc-icon-button" aria-label="Close">close</button>
<span class="mdc-top-app-bar__title">Contextual title</span>
</section>
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-end" role="toolbar">
<button class="material-icons mdc-top-app-bar__action-item mdc-icon-button" aria-label="Share">share</button>
<button class="material-icons mdc-top-app-bar__action-item mdc-icon-button" aria-label="Delete">delete</button>
<button class="material-icons mdc-top-app-bar__action-item mdc-icon-button" aria-label="Open menu">more_vert</button>
</section>
</div>
</header>
<main class="mdc-top-app-bar--fixed-adjust">
App content
</main>

<header class="mdc-top-app-bar">
<div class="mdc-top-app-bar__row">
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start">
<button class="material-icons mdc-top-app-bar__navigation-icon mdc-icon-button" aria-label="Open navigation menu">menu</button>
<span class="mdc-top-app-bar__title">Page title</span>
</section>
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-end" role="toolbar">
<button class="material-icons mdc-top-app-bar__action-item mdc-icon-button" aria-label="Favorite">favorite</button>
<button class="material-icons mdc-top-app-bar__action-item mdc-icon-button" aria-label="Search">search</button>
<button class="material-icons mdc-top-app-bar__action-item mdc-icon-button" aria-label="Options">more_vert</button>
</section>
</div>
</header>
<main class="mdc-top-app-bar--fixed-adjust">
App content
</main>

<button class="mdc-button foo-button">
<div class="mdc-button__ripple"></div>
<span class="mdc-button__label">Button</span>
</button>

<div class="mdc-touch-target-wrapper">
<button class="mdc-button mdc-button--touch">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__touch"></span>
<span class="mdc-button__label">My Accessible Button</span>
</button>
</div>

<button class="mdc-button mdc-button--raised">
<span class="mdc-button__label">Contained Button</span>
</button>

<script src="./demo-app.js"></script>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "leven-match",
"version": "2.0.0",
"version": "2.0.1",
"description": "Return all word matches between two arrays within given Levenshtein distance",
"main": "./dist/leven-match.cjs.js",
"module": "./dist/leven-match.esm.mjs",
Expand Down

0 comments on commit 2610d10

Please sign in to comment.