Skip to content

Commit 59d4e49

Browse files
committed
add ci tests
1 parent 9158cd9 commit 59d4e49

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 5

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: ["main", "master"]
6+
pull_request:
7+
branches: ["main", "master"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 18
17+
- run: npm ci
18+
- run: npm test

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,9 @@ See [`src/tokens/README.md`](src/tokens/README.md) for full examples.
181181
This Software Development Kit (SDK) is actively being developed in conjunction with the [Hgraph API](https://hgraph.com) to ensure seamless integration and compatibility between the two. We are committed to adopting [Semantic Versioning](https://semver.org) standards, which will provide clear and predictable updates, making it easier for developers to manage dependencies and stay informed about changes.
182182

183183
> Before we release version 1.0, updates may introduce breaking changes as we refine the software. To maintain stability in production, we recommend pinning dependencies to an exact version using `--save-exact` when installing the package.
184+
185+
## Continuous Integration and Dependency Updates
186+
187+
This project runs its test suite automatically using **GitHub Actions**. Every push and pull request triggers the workflow defined in [`.github/workflows/test.yml`](.github/workflows/test.yml), which installs dependencies with `npm ci` and executes `npm test`.
188+
189+
To keep dependencies current, **Dependabot** monitors `package.json` and opens weekly pull requests with updates. Review these PRs to stay on the latest compatible versions.

0 commit comments

Comments
 (0)