Skip to content

Commit

Permalink
ci(workflows): added push/PR worflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MD4 committed Dec 7, 2020
1 parent 3438083 commit 7dfb590
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 7 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run doc
- run: npm run build
- run: npm test
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

`Const`**computeShadows**(`bounds`: [Bounds](interfaces/bounds.md), `walls`: [Segment2](interfaces/segment2.md)[], `light`: [Vec2](interfaces/vec2.md)): [Vec2](interfaces/vec2.md)[][]

*Defined in [computeShadows.ts:39](https://github.com/MD4/shadowed/blob/3f8192d/src/computeShadows.ts#L39)*
*Defined in [computeShadows.ts:39](https://github.com/MD4/shadowed/blob/3438083/src/computeShadows.ts#L39)*

Computes casted shadows by a light for a given set of walls within specified bounds.

Expand Down
4 changes: 2 additions & 2 deletions docs/interfaces/bounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@

**bottomRight**: [Vec2](vec2.md)

*Defined in [entities.ts:8](https://github.com/MD4/shadowed/blob/3f8192d/src/entities.ts#L8)*
*Defined in [entities.ts:8](https://github.com/MD4/shadowed/blob/3438083/src/entities.ts#L8)*

___

### topLeft

**topLeft**: [Vec2](vec2.md)

*Defined in [entities.ts:7](https://github.com/MD4/shadowed/blob/3f8192d/src/entities.ts#L7)*
*Defined in [entities.ts:7](https://github.com/MD4/shadowed/blob/3438083/src/entities.ts#L7)*
4 changes: 2 additions & 2 deletions docs/interfaces/segment2.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@

**a**: [Vec2](vec2.md)

*Defined in [entities.ts:12](https://github.com/MD4/shadowed/blob/3f8192d/src/entities.ts#L12)*
*Defined in [entities.ts:12](https://github.com/MD4/shadowed/blob/3438083/src/entities.ts#L12)*

___

### b

**b**: [Vec2](vec2.md)

*Defined in [entities.ts:13](https://github.com/MD4/shadowed/blob/3f8192d/src/entities.ts#L13)*
*Defined in [entities.ts:13](https://github.com/MD4/shadowed/blob/3438083/src/entities.ts#L13)*
4 changes: 2 additions & 2 deletions docs/interfaces/vec2.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@

**x**: number

*Defined in [entities.ts:2](https://github.com/MD4/shadowed/blob/3f8192d/src/entities.ts#L2)*
*Defined in [entities.ts:2](https://github.com/MD4/shadowed/blob/3438083/src/entities.ts#L2)*

___

### y

**y**: number

*Defined in [entities.ts:3](https://github.com/MD4/shadowed/blob/3f8192d/src/entities.ts#L3)*
*Defined in [entities.ts:3](https://github.com/MD4/shadowed/blob/3438083/src/entities.ts#L3)*

0 comments on commit 7dfb590

Please sign in to comment.