Skip to content

Commit bcf1baf

Browse files
authored
Merge pull request #8 from tehliang/Test-codecov
Test codecov
2 parents a133529 + d2bca6d commit bcf1baf

11 files changed

+51
-450
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Javascript Algorithm CI
5+
6+
on: [push, pull_request]
7+
8+
permissions: write-all
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js
18+
uses: actions/setup-node@v2
19+
20+
- name: npm install, build, and test
21+
run: |
22+
npm install doctest
23+
npm install standard --save-dev
24+
npx doctest **/*.js || true # TODO: Add all doctests
25+
npx standard
26+
npm ci
27+
npm run build --if-present
28+
29+
env:
30+
CI: true
31+
32+
- name: Run the tests
33+
run: npm test -- --coverage
34+
35+
- name: Upload coverage to Codecov
36+
uses: codecov/codecov-action@v3.1.0
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Codacy Analysis CLI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
codacy-analysis-cli:
7+
name: Codacy Analysis CLI
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@main
12+
13+
- name: Run Codacy Analysis CLI
14+
uses: codacy/codacy-analysis-cli-action@master

DIRECTORY.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
* [IsEven](Maths/IsEven.js)
171171
* [IsOdd](Maths/IsOdd.js)
172172
* [IsPronic](Maths/IsPronic.js)
173+
* [JugglerSequence](Maths/JugglerSequence.js)
173174
* [LeapYear](Maths/LeapYear.js)
174175
* [LinearSieve](Maths/LinearSieve.js)
175176
* [LucasSeries](Maths/LucasSeries.js)
@@ -186,9 +187,7 @@
186187
* [PerfectNumber](Maths/PerfectNumber.js)
187188
* [PerfectSquare](Maths/PerfectSquare.js)
188189
* [PermutationAndCombination](Maths/PermutationAndCombination.js)
189-
* [PiApproximationMonteCarlo](Maths/PiApproximationMonteCarlo.js)
190190
* [Polynomial](Maths/Polynomial.js)
191-
* [Pow](Maths/Pow.js)
192191
* [PowLogarithmic](Maths/PowLogarithmic.js)
193192
* [PrimeCheck](Maths/PrimeCheck.js)
194193
* [PrimeFactors](Maths/PrimeFactors.js)
@@ -281,10 +280,8 @@
281280
* [TimSort](Sorts/TimSort.js)
282281
* [TopologicalSort](Sorts/TopologicalSort.js)
283282
* **String**
284-
* [AlphaNumericPalindrome](String/AlphaNumericPalindrome.js)
285283
* [AlternativeStringArrange](String/AlternativeStringArrange.js)
286284
* [BoyerMoore](String/BoyerMoore.js)
287-
* [CheckAnagram](String/CheckAnagram.js)
288285
* [CheckCamelCase](String/CheckCamelCase.js)
289286
* [CheckExceeding](String/CheckExceeding.js)
290287
* [CheckFlatCase](String/CheckFlatCase.js)

Maths/PiApproximationMonteCarlo.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

Maths/Pow.js

Lines changed: 0 additions & 62 deletions
This file was deleted.

Maths/test/PiApproximationMonteCarlo.test.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

Maths/test/Pow.test.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

String/AlphaNumericPalindrome.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

String/CheckAnagram.js

Lines changed: 0 additions & 76 deletions
This file was deleted.

String/test/AlphaNumericPalindrome.test.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)