fix: check is Promise #127
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: Test | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- "master" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 10.x | |
- 12.x | |
- 14.x | |
- 16.x | |
steps: | |
- name: CHECK-OUT GIT REPOSITORY | |
uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: INSTALL PROJECT DEPENDENCIES (yarn) | |
run: yarn install | |
- name: Test | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Test @vgerbot/channel | |
run: yarn workspace @vgerbot/channel test | |
- name: Build @vgerbot/channel | |
run: yarn workspace @vgerbot/channel build | |
- name: Test @vgerbot/channel-transformer | |
run: yarn workspace @vgerbot/channel-transformer test | |
- name: Upload coverage data of @vgerbot/channel to codecov | |
run: yarn workspace @vgerbot/channel codecov | |
- name: Upload coverage data pf @vgerbot/channel-transformer to codecov | |
run: yarn workspace @vgerbot/channel-transformer codecov | |
- name: Upload coverage reports to codacy | |
uses: codacy/codacy-coverage-reporter-action@master | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: packages/core/coverage/cobertura-coverage.xml,packages/transformer/coverage/cobertura-coverage.xml |