Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit 63fb61d

Browse files
authored
Merge pull request #87 from orbitdb/ci/run-tests
Add Github Action to run tests
2 parents e93809d + 86748b6 commit 63fb61d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Run Tests
3+
4+
on: push
5+
6+
jobs:
7+
test-node:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 'lts/*'
14+
registry-url: https://registry.npmjs.org/
15+
- name: Install dependencies
16+
run: npm ci
17+
- name: Run linter
18+
run: npm run lint
19+
- name: Run tests
20+
run: npm run test:node
21+
test-browser:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-node@v3
26+
with:
27+
node-version: 'lts/*'
28+
registry-url: https://registry.npmjs.org/
29+
- name: Install dependencies
30+
run: npm ci
31+
- name: Run linter
32+
run: npm run lint
33+
- name: Run tests
34+
run: npm run test:browser

0 commit comments

Comments
 (0)