Skip to content

Commit 3b859b4

Browse files
authored
Merge pull request #11 from mog13/chore/gh-actions
- add an action for linting, testing and code coverage
2 parents bd6a783 + 67d519c commit 3b859b4

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

.github/workflows/testAndCoverage.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test, lint and Code Coverage
2+
3+
on: [ push ]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v2
13+
14+
- name: Set up Node.js ${{ matrix.node-version }}
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 20.x
18+
19+
- name: Install dependencies
20+
run: npm install
21+
22+
- name: Lint the code
23+
run: npm run lint
24+
25+
- name: Run the tests
26+
run: npm test -- --coverage
27+
28+
- name: Upload coverage to Codecov
29+
uses: codecov/codecov-action@v3

.prettierrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"endOfLine": "lf"
3+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"random",
2424
"dx"
2525
],
26-
"author": "Morgan Owen",
26+
"author": "Morgan Sands",
2727
"license": "MIT",
2828
"bugs": {
2929
"url": "https://github.com/mog13/DXJS/issues"

0 commit comments

Comments
 (0)