Skip to content

Commit

Permalink
chore: add test ci and show it in readme (#84)
Browse files Browse the repository at this point in the history
Co-authored-by: yutingzhao1991 <[email protected]>
  • Loading branch information
yutingzhao1991 and yutingzhao1991 authored Nov 8, 2023
1 parent b802b5d commit ec98726
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test

on:
push:
branches: [main]

jobs:
ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: ci
run: |
npm i pnpm -g
pnpm install
pnpm run test
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

A components collection for Web3.

[![NPM version][npm-image]][npm-url]
[![test status][github-action-image]][github-action-url] [![NPM version][npm-image]][npm-url]

[![antd][antd-image]][antd-url] [![dumi][dumi-image]][dumi-url]

[github-action-image]: https://github.com/ant-design/ant-design-web3/workflows/test/badge.svg
[github-action-url]: https://github.com/ant-design/ant-design-web3/actions/workflows/test.yml
[npm-image]: https://img.shields.io/npm/v/@ant-design/web3.svg?style=flat-square
[npm-url]: http://npmjs.org/package/@ant-design/web3
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square
Expand Down

0 comments on commit ec98726

Please sign in to comment.