Skip to content

Commit 857efc2

Browse files
committed
docs: add ci job
1 parent 6a242ce commit 857efc2

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Node.js CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version:
15+
- 14.x
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- run: npm ci
23+
- run: npm run build --if-present
24+
- run: npm test
25+
generate-docs:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: actions/setup-node@v2
30+
with:
31+
node-version: 14.x
32+
- run: npm ci
33+
- run: npm run docs
34+
- name: Do git actions
35+
run: |
36+
git add --force -- docs/README.md
37+
git commit -m "docs: add generated docs"
38+
git push

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
<!-- primary badges -->
1010
<p align="center">
11+
<img src="https://github.com/argentlabs/starknet/workflows/Node.js%20CI/badge.svg">
1112
<img src='https://img.shields.io/github/package-json/v/seanjameshan/starknet.js?label=npm' />
1213
<img src='https://img.shields.io/bundlephobia/minzip/starknet?color=success&label=size' />
1314
<!-- <img src='https://img.shields.io/npm/dt/starknet?color=blueviolet' /> -->

0 commit comments

Comments
 (0)