on:
push:
- branches:
- - master
+ branches: [master]
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
run: npm run lint
- name: Tests
- if: "matrix.os != 'windows-latest' || matrix.node != '18.x'"
run: npm run test
- - name: Coverage & Linter Reports
+ - name: Coverage Report
if: "github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
- run: |
- npm run coverage
- npm run lint:report
+ run: npm run coverage
- name: Sonar Code Analysis
if: "github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"