From 3e4425bf2fb78088ea42320f7d0a85b76a01532c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Thu, 19 Dec 2019 14:44:40 +0800 Subject: [PATCH] chore: update test.yml --- .github/workflows/test.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb5818d28..51b542512 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,17 @@ jobs: - uses: actions/setup-node@v1 with: node-version: '12.x' + + - name: Install dependencies - run: yarn + + - name: Run linter - run: npm run lint + + - name: Run test cases - run: npm test - - run: cat ./test/coverage/lcov.info | ./node_modules/.bin/codecov + + - name: Upload coverage to Codecov + - uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }}