Skip to content

Commit 922e7a6

Browse files
committed
yarn test github action added
1 parent e9eb46d commit 922e7a6

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/yarn.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: yarn
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
tags: [ '**' ]
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
build:
12+
name: Test
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: borales/[email protected]
17+
with:
18+
cmd: install # will run `yarn install` command
19+
- uses: borales/[email protected]
20+
with:
21+
cmd: build # will run `yarn build` command
22+
- uses: borales/[email protected]
23+
with:
24+
cmd: test # will run `yarn test` command

src/components/Plugins/Plugins.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ export class Plugins extends Component {
420420
{
421421
// eslint-disable-next-line no-nested-ternary
422422
(paginationOffset + paginationLimit > plugins.totalCount) ?
423-
(plugins.totalCount === -1 ? 1 : plugins.totalCount)
423+
plugins.totalCount
424424
:
425425
(paginationOffset > 0) ?
426426
paginationOffset

0 commit comments

Comments
 (0)