Skip to content

Commit

Permalink
ci: Enhance test workflow (#301)
Browse files Browse the repository at this point in the history
- Add ubuntu-16.04
- Bump actions/upload-artifact from v1 to v2
- Fix coverage artifact name
  • Loading branch information
peaceiris authored May 3, 2020
1 parent 55117bd commit 0b128ac
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit 0b128ac

Please sign in to comment.