Skip to content

Commit

Permalink
Coverage report & split prod_lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jan 25, 2020
1 parent 412bb10 commit d49207d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/dev-test.yml
Expand Up @@ -34,3 +34,10 @@ jobs:

- name: Run Test
run: yarn test

- name: Upload Coverage To Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/cobertura-coverage.xml
fail_ci_if_error: true
40 changes: 37 additions & 3 deletions .github/workflows/prod-test.yml
Expand Up @@ -23,15 +23,42 @@ jobs:
- name: Build Package
run: yarn build

- name: Lint Code
run: yarn test:dist

- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: dist
path: dist

prod_lint:
name: Lint
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: "12"

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Build Package
run: yarn build

- name: Download Artifact
uses: actions/download-artifact@v1
with:
name: dist
path: dist

- name: Lint Code
run: yarn test:dist

prod_test:
strategy:
fail-fast: false
Expand Down Expand Up @@ -70,3 +97,10 @@ jobs:

- name: Run Test
run: yarn test:dist

- name: Upload Coverage To Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/cobertura-coverage.xml
fail_ci_if_error: true

0 comments on commit d49207d

Please sign in to comment.