File tree Expand file tree Collapse file tree 2 files changed +39
-8
lines changed Expand file tree Collapse file tree 2 files changed +39
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : Run Tests
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build :
13
+
14
+ runs-on : ubuntu-latest
15
+
16
+ strategy :
17
+ matrix :
18
+ node-version : [18.x, 20.x]
19
+
20
+ steps :
21
+ - name : Checkout code
22
+ uses : actions/checkout@v4
23
+
24
+ - name : Use Node.js ${{ matrix.node-version }}
25
+ uses : actions/setup-node@v3
26
+ with :
27
+ node-version : ${{ matrix.node-version }}
28
+
29
+ - name : Install Dependencies
30
+ run : npm ci
31
+
32
+ - name : Run Build
33
+ run : npm run build
34
+
35
+ - name : Lint Check
36
+ run : npm run lint --if-present
37
+
38
+ - name : Validate tests
39
+ run : npm run test --if-present
Original file line number Diff line number Diff line change @@ -32,14 +32,6 @@ class ColorPalette {
32
32
this . algorithm = new Histogram ( ) ;
33
33
}
34
34
35
- async getHistogram ( ) {
36
- if ( this . histogram . length === 0 ) {
37
- await this . loadHistogram ( ) ;
38
- }
39
-
40
- return this . histogram ;
41
- }
42
-
43
35
protected imageProcessorInit ( imageUrl : string ) : IImageProcessor {
44
36
return new SharpImageProcessor ( imageUrl ) ;
45
37
}
You can’t perform that action at this time.
0 commit comments