Skip to content
Merged
Show file tree
Hide file tree
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
38 changes: 38 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Running Code Coverage

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

strategy:
matrix:
node-version: [14.x, 15.x, 16.x, 18.x]

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# Fine-grained PAT with contents:write and workflows:write
# scopes
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run tests
run: npm run test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![codecov](https://codecov.io/gh/dev-javascript/react-dyn-tabs/graph/badge.svg?token=GT1LU074L2)](https://codecov.io/gh/dev-javascript/react-dyn-tabs/branch/dev-javascript-patch-1)

# react-dyn-tabs

React Dynamic Tabs with full API
Expand Down
52 changes: 50 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"build:scss:pro": "sass themes/minified-scss:themes style/minified-scss:style --style compressed --no-source-map",
"clean:lib": "rimraf lib",
"clean:dist": "rimraf dist",
"prepublish": "npm run build",
"prepublishOnly": "npm run build",
"test": "jest",
"lint": "eslint src",
"deploy": "gh-pages -d demo"
Expand All @@ -51,8 +51,8 @@
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
"@babel/runtime-corejs3": "^7.13.10",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"babel-loader": "^8.1.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"cross-env": "^7.0.3",
Expand Down Expand Up @@ -112,9 +112,10 @@
"jest": {
"setupFilesAfterEnv": [
"jest-extended"
]
],
"collectCoverage": true
},
"dependencies": {
"prop-types": "^15.7.2"
}
}
}
Loading