Skip to content

Commit

Permalink
ci: add ci for test
Browse files Browse the repository at this point in the history
  • Loading branch information
cqroot committed Jan 19, 2023
1 parent 95698dc commit 386e464
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 10 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: test
on: [push]

jobs:
test:
defaults:
run:
shell: bash

strategy:
fail-fast: false
matrix:
platform:
- ubuntu
- macOS

name: "${{ matrix.platform }}"

runs-on: ${{ matrix.platform }}-latest

steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3

- run: npm install

- run: npm run lint
- run: npm run test
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
<br />
</p>
<p>
<img src="https://img.shields.io/github/issues/cqroot/joplin-outline?style=flat-square" />
<img src="https://img.shields.io/github/license/cqroot/joplin-outline?style=flat-square" />
<img src="https://img.shields.io/npm/v/joplin-plugin-outline?label=version&style=flat-square" />
<img src="https://img.shields.io/github/downloads/cqroot/joplin-outline/total?label=github%20downloads&style=flat-square" />
<img src="https://img.shields.io/npm/dt/joplin-plugin-outline?label=npm%20downloads&style=flat-square" />
<a href="https://github.com/cqroot/joplin-outline/actions">
<img src="https://github.com/cqroot/joplin-outline/workflows/test/badge.svg" alt="Action Status" />
</a>
<img src="https://img.shields.io/github/issues/cqroot/joplin-outline" />
<img src="https://img.shields.io/github/license/cqroot/joplin-outline" />
<img src="https://img.shields.io/npm/v/joplin-plugin-outline?label=version" />
<img src="https://img.shields.io/github/downloads/cqroot/joplin-outline/total?label=github%20downloads" />
<img src="https://img.shields.io/npm/dt/joplin-plugin-outline?label=npm%20downloads" />
</p>
<hr>
</div>
Expand Down
13 changes: 8 additions & 5 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
<br />
</p>
<p>
<img src="https://img.shields.io/github/issues/cqroot/joplin-outline?style=flat-square" />
<img src="https://img.shields.io/github/license/cqroot/joplin-outline?style=flat-square" />
<img src="https://img.shields.io/npm/v/joplin-plugin-outline?label=version&style=flat-square" />
<img src="https://img.shields.io/github/downloads/cqroot/joplin-outline/total?label=github%20downloads&style=flat-square" />
<img src="https://img.shields.io/npm/dt/joplin-plugin-outline?label=npm%20downloads&style=flat-square" />
<a href="https://github.com/cqroot/joplin-outline/actions">
<img src="https://github.com/cqroot/joplin-outline/workflows/test/badge.svg" alt="Action Status" />
</a>
<img src="https://img.shields.io/github/issues/cqroot/joplin-outline" />
<img src="https://img.shields.io/github/license/cqroot/joplin-outline" />
<img src="https://img.shields.io/npm/v/joplin-plugin-outline?label=version" />
<img src="https://img.shields.io/github/downloads/cqroot/joplin-outline/total?label=github%20downloads" />
<img src="https://img.shields.io/npm/dt/joplin-plugin-outline?label=npm%20downloads" />
</p>
<hr>
</div>
Expand Down

0 comments on commit 386e464

Please sign in to comment.