Skip to content

Commit

Permalink
Update deps and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Oct 8, 2023
1 parent 07950fa commit 6a8c067
Show file tree
Hide file tree
Showing 10 changed files with 645 additions and 4,055 deletions.
18 changes: 0 additions & 18 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@
"parserOptions": {
"ecmaVersion": 2022
},
"overrides": [
{
"files": [
"**/*.test.js"
],
"env": {
"jest": true
},
"plugins": ["jest"],
"rules": {
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
}
}
],
"env": {
"node": true,
"es6": true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
run: npm ci

- name: Build Current Binary
run: npm run build-all
run: npm run build

- name: Get Package Version
id: package-version
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ESLint
defaults:
run:
shell: bash

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
eslint:
name: ESLint
runs-on: ubuntu-20.04

steps:

- name: Fetch Repository
uses: actions/checkout@v3
with:
persist-credentials: false

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

- name: Install Modules
run: npm ci

- name: Run ESLint
run: npm run eslint
27 changes: 2 additions & 25 deletions .github/workflows/validate.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate
name: Test
defaults:
run:
shell: bash
Expand All @@ -12,29 +12,6 @@ on:
- master

jobs:
eslint:
name: ESLint
runs-on: ubuntu-20.04

steps:

- name: Fetch Repository
uses: actions/checkout@v3
with:
persist-credentials: false

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

- name: Install Modules
run: npm ci

- name: Run ESLint
run: npm run eslint

unit-tests:
name: Unit Tests
strategy:
Expand All @@ -60,7 +37,7 @@ jobs:
run: npm ci

- name: Build Current Binary
run: npm run build-all
run: npm run build

- name: Run Unit Tests - Linux
if: matrix.os == 'ubuntu-20.04'
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const glfw = require('glfw-raub');
Here `glfw` is an API container, where all `glfw*` functions are accessible as
`glfw.*`. E.g. `glfwSetWindowTitle` -> `glfw.setWindowTitle`.

See [TypeSctipt defenitions](/index.d.ts) for more details.
See [TypeSctipt definitions](/index.d.ts) for more details.

----------

Expand All @@ -53,7 +53,7 @@ const { Window } = glfw;
This class helps managing window objects and their events. It can also switch between
fullscreen, borderless and windowed modes.

See [TypeSctipt defenitions](/index.d.ts) for more details.
See [TypeSctipt definitions](/index.d.ts) for more details.

----------

Expand All @@ -66,4 +66,4 @@ const { Document } = glfw;
It can be used to facilitate the environment for other
JS libraries, such as [three.js](https://threejs.org/).

See [TypeSctipt defenitions](/index.d.ts) for more details.
See [TypeSctipt definitions](/index.d.ts) for more details.
18 changes: 0 additions & 18 deletions conf/jest.json

This file was deleted.

Loading

0 comments on commit 6a8c067

Please sign in to comment.