Feature/12 create tests #102

Merged
Vylpes merged 25 commits from feature/12-create-tests into develop 2022-01-30 17:03:37 +00:00
3 changed files with 56 additions and 1 deletions
Showing only changes of commit 1b662324e9 - Show all commits

27
.github/workflows/linting.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Linting
on:
pull_request:
branches:
- main
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.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: yarn install
- run: yarn build
- run: yarn lint

27
.github/workflows/testing.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Testing
on:
pull_request:
branches:
- main
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.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: yarn install
- run: yarn build
- run: yarn test --coverage

View file

@ -7,7 +7,8 @@
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"start": "node ./dist/vylbot", "start": "node ./dist/vylbot",
"test": "jest" "test": "jest",
"lint": "eslint ."
}, },
"repository": { "repository": {
"type": "git", "type": "git",