ad8a667428
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1.5.0 to 1.5.2. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v1.5.0...v1.5.2) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
name: 'Test'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- 'ubuntu-20.04'
|
|
- 'ubuntu-18.04'
|
|
- 'macos-latest'
|
|
- 'windows-latest'
|
|
steps:
|
|
- uses: actions/checkout@v2.3.4
|
|
|
|
- name: Read .nvmrc
|
|
run: echo "::set-output name=NVMRC::$(cat .nvmrc)"
|
|
id: nvm
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v2.1.5
|
|
with:
|
|
node-version: '${{ steps.nvm.outputs.NVMRC }}'
|
|
|
|
- run: npm i -g npm
|
|
- run: npm ci
|
|
|
|
- name: Run prettier
|
|
if: startsWith(matrix.os, 'ubuntu-18.04')
|
|
run: npm run format:check
|
|
|
|
- name: Run eslint
|
|
if: startsWith(matrix.os, 'ubuntu-18.04')
|
|
run: npm run lint
|
|
|
|
- name: Run ncc
|
|
if: startsWith(matrix.os, 'ubuntu-18.04')
|
|
run: npm run build
|
|
|
|
- run: npm test
|
|
|
|
- name: Upload test coverage as artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: coverage-${{ matrix.os }}
|
|
path: coverage
|
|
|
|
- uses: codecov/codecov-action@v1.5.2
|