Skip to content

Commit 8c7ef0e

Browse files
committed
check format on github
1 parent 38da730 commit 8c7ef0e

3 files changed

Lines changed: 28 additions & 3 deletions

File tree

.github/workflows/format.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Formatting
2+
3+
on:
4+
push:
5+
branches: ['**']
6+
pull_request:
7+
branches: ['**']
8+
9+
jobs:
10+
prettier:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run Prettier check
27+
run: npm run format:check

.github/workflows/test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ jobs:
2727
- name: Install dependencies
2828
run: npm ci
2929

30-
- name: Check formatting
31-
run: npm run format:check
32-
3330
- name: Run tests
3431
run: npm test
3532

README.md

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

33
[![Tests](https://github.com/CounterpartyXCP/TxParser/actions/workflows/test.yml/badge.svg)](https://github.com/CounterpartyXCP/TxParser/actions/workflows/test.yml)
44
[![codecov](https://codecov.io/gh/CounterpartyXCP/TxParser/graph/badge.svg?token=45D6G1ESFV)](https://codecov.io/gh/CounterpartyXCP/TxParser)
5+
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?logo=prettier&logoColor=white)](https://github.com/prettier/prettier)
56
![Node.js](https://img.shields.io/badge/node-20%20%7C%2022-brightgreen)
67

78
A TypeScript library for parsing Counterparty protocol transactions from Bitcoin blockchain data. Supports both legacy OP_RETURN and modern Taproot reveal formats.

0 commit comments

Comments
 (0)