Skip to content

Commit 7ea353d

Browse files
committed
Fixing Eslint and JEst
1 parent 5484795 commit 7ea353d

File tree

4 files changed

+9
-21
lines changed

4 files changed

+9
-21
lines changed
File renamed without changes.

.github/workflows/coveralls.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,23 @@ name: Tests and coverage
22

33
on:
44
push:
5-
branches: [main]
5+
branches: ["main"]
66
pull_request:
7-
branches: [main]
7+
branches: ["main"]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
node-version: [14.x, 16.x]
12+
13+
1514
steps:
1615
- uses: actions/checkout@v3
1716
- name: Use Node.js ${{ matrix.node-version }}
1817
uses: actions/setup-node@v3
1918
with:
20-
node-version: ${{ matrix.node-version }}
21-
- name: Install dependencies
22-
uses: bahmutov/npm-install@v1
23-
- run: npm run coverage
24-
19+
node-version: 16.x
20+
cache: "npm"
21+
- run: npm install
2522
- name: Coveralls
2623
uses: coverallsapp/github-action@master
2724
with:

.github/workflows/lint.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- name: Get npm cache directory
18-
id: npm-cache
19-
run: |
20-
echo "::set-output name=dir::$(npm config get cache)"
21-
- uses: actions/cache@v3
22-
with:
23-
path: ${{ steps.npm-cache.outputs.dir }}
24-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
25-
restore-keys: |
26-
${{ runner.os }}-node-
2717
- uses: actions/checkout@v3
2818
- name: Use Node.js ${{ matrix.node-version }}
2919
uses: actions/setup-node@v3
3020
with:
3121
node-version: "16.x"
32-
- run: npm ci
22+
- run: npm install
3323
- run: npm run lint

tests/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const allVersions = [
2626
"7.1.0",
2727
"7.2.0",
2828
"7.3.0",
29+
"8.0.0",
2930
];
3031
const cases = [
3132
null,

0 commit comments

Comments
 (0)