Skip to content

Commit a348d43

Browse files
committed
chore(tools): set up CI to run tests on every push
1 parent 66ce9ee commit a348d43

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
on:
3+
push:
4+
paths-ignore:
5+
- '**.md'
6+
pull_request:
7+
paths-ignore:
8+
- '**.md'
9+
10+
jobs:
11+
build:
12+
name: build
13+
runs-on: ubuntu-20.04
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v2
17+
18+
- name: Install pnpm
19+
run: sudo npm install -g pnpm
20+
21+
- name: Cache dependencies
22+
uses: actions/cache@v1
23+
with:
24+
path: ~/.pnpm-store
25+
key: pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Build package
31+
run: pnpm run build
32+
33+
- name: Run tests
34+
run: pnpm test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Commithelper
22

3+
[![Build](https://github.com/jvanbruegge/commithelper/actions/workflows/ci.yml/badge.svg)](https://github.com/jvanbruegge/commithelper/actions/workflows/ci.yml)
4+
35
A tool to create and lint commit messages. It has two modes `prompt` and `check`. The former asks you questions to create a well-formed commit message, while the latter lints a given commit message.
46

57
![A screenshot of a terminal showing the tool](./console.png)

0 commit comments

Comments
 (0)