fix(context): req记录context,防止close和finish事件清理后无法上报 #292
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: build | |
on: | |
pull_request: | |
branches: | |
- master | |
- release | |
- 2.0 | |
jobs: | |
lint-code: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Pull Code | |
uses: actions/checkout@v1 | |
- name: Set up Node.js | |
uses: actions/setup-node@master | |
with: | |
node-version: '12.x' | |
- name: Install Dependencies | |
run: yarn | |
- name: Commit Linter | |
uses: wagoid/[email protected] | |
with: | |
configFile: '.commitlintrc.yml' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run ESLinter | |
run: yarn lint | |
- name: Run Tests | |
run: yarn test | |
- name: codecov | |
uses: codecov/codecov-action@v1 |