diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fa93a9..fe7155b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,14 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} + - name: use node@${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm install - run: npm test + - run: npm run test:coverage + - name: codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index dbded79..3b06da2 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ dotenv-expand is your tool. [![NPM version](https://img.shields.io/npm/v/dotenv-expand.svg?style=flat-square)](https://www.npmjs.com/package/dotenv-expand) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) [![Featured on Openbase](https://badges.openbase.com/js/featured/dotenv-expand.svg?token=BGZJQVRDGu24cWu/F8LIrCmZvIhC1yUc03IUkk9/sUM=)](https://openbase.com/js/dotenv-expand?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge) +[![codecov](https://codecov.io/gh/motdotla/dotenv-expand/graph/badge.svg?token=pawWEyaMfg)](https://codecov.io/gh/motdotla/dotenv-expand) ## Install diff --git a/package.json b/package.json index c85fcf6..04bbb8a 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "lint": "standard", "pretest": "npm run lint && npm run dts-check", "test": "tap tests/*.js --100 -Rspec", + "test:coverage": "tap --coverage-report=lcov", "prerelease": "npm test", "release": "standard-version" },