Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Enhance test workflow #301

Merged
merged 1 commit into from
May 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
matrix:
os:
- 'ubuntu-18.04'
- 'ubuntu-16.04'
- 'macos-latest'
- 'windows-latest'
steps:
Expand All @@ -41,27 +42,26 @@ jobs:
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- run: npm i -g npm

- run: npm ci

- name: Run prettier
if: startsWith(matrix.os, 'ubuntu')
if: startsWith(matrix.os, 'ubuntu-18.04')
run: npm run format:check

- name: Run eslint
if: startsWith(matrix.os, 'ubuntu')
if: startsWith(matrix.os, 'ubuntu-18.04')
run: npm run lint

- name: Run ncc
if: startsWith(matrix.os, 'ubuntu')
if: startsWith(matrix.os, 'ubuntu-18.04')
run: npm run build

- run: npm test

- name: Upload test coverage as artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: coverage
name: coverage-${{ matrix.os }}
path: coverage

- uses: codecov/codecov-action@v1
Expand Down