add trigger event in github workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |