Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit aad8856

Browse files
committed
Added github ci
1 parent 0e7f456 commit aad8856

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/release-drafter.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name-template: 'Next Release'
2+
tag-template: 'next'
3+
change-template: '- $TITLE #$NUMBER'
4+
no-changes-template: '- No changes yet'
5+
template: |
6+
$CHANGES

.github/workflows/node.js.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [12.x, 14.x, 16.x]
20+
ts-project: [src/tsconfig.json, src/tsconfig-es6.json]
21+
22+
env:
23+
TS_NODE_PROJECT: ${{ matrix.ts-project }}
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- run: npm cache clean --force
32+
- run: npm ci
33+
- run: npm run build --if-present
34+
- run: npm test

0 commit comments

Comments
 (0)