Skip to content

Commit

Permalink
PR: add .github/workflows/ci.yml for basic Node.js testing #709 (#718)
Browse files Browse the repository at this point in the history
* add .github/workflows/ci.yml for basic Node.js teting #709

* add GitHub Actions Badge + Coveralls & Hits #709

* Fix logo - badge spacing README.md #709

* Fix markdown fail in header of README.md #709

* Final badge fix in README.md #709

* Update GitHub Actions badge path and branch to "master" README.md #709
  • Loading branch information
nelsonic authored Jul 8, 2024
1 parent d3efd6f commit a8b2866
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [20.x]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm test
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<h3 align="center">
<img align="center" src="assets/logo.png" alt="Purify logo" width="112" />
</h3
<div align="center">
<img src="assets/logo.png" alt="Purify logo" /> <br />

[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/gigobyte/purify/ci.yml?label=build&style=flat-square&branch=master)](https://github.com/gigobyte/purify/actions/workflows/ci.yml)
![Coveralls](https://img.shields.io/coverallsCoverage/github/gigobyte/purify?style=flat-square&color=brightGreen)
[![TypeScript Version](http://img.shields.io/badge/built_with-TypeScript-brightgreen.svg?style=flat-square "Latest Typescript")](https://www.typescriptlang.org/download/)
[![HitCount](https://hits.dwyl.com/gigobyte/purify.svg?style=flat-square)](http://hits.dwyl.com/gigobyte/purify)

</div>

# What is purify?

Expand Down

0 comments on commit a8b2866

Please sign in to comment.