Skip to content

add trigger event in github workflow #1

add trigger event in github workflow

add trigger event in github workflow #1

name: ci-botnorrea-v2-telegram
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
unit-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["18.x"]
steps:
- uses: actions/checkout@v2
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Run tests
run: npm run coverage
- name: Check coverage
uses: VeryGoodOpenSource/[email protected]
with:
path: "coverage/lcov.info"
min_coverage: 30