Add GitHub Actions

Signed-off-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
Ethan Lane 2022-01-29 17:38:42 +00:00
parent 0315f80976
commit 1b662324e9
Signed by: Vylpes
GPG key ID: EED233CC06D12504
3 changed files with 56 additions and 1 deletions

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": {
"build": "tsc",
"start": "node ./dist/vylbot",
"test": "jest"
"test": "jest",
"lint": "eslint ."
},
"repository": {
"type": "git",