Skip to content

update for asyncapi schema v3 #93

update for asyncapi schema v3

update for asyncapi schema v3 #93

Workflow file for this run

name: Unit Tests
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Setup nodejs and run tests
uses: actions/setup-node@v2-beta
with:
node-version: '12'
- run: |
npm ci
npm run lint
npm test
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}