Skip to content

Commit f7d528b

Browse files
authored
Merge pull request #3 from mkantor/ci
Add GitHub actions workflow for validating commits
2 parents 368b221 + bf48157 commit f7d528b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/validate-commit.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: validate commit
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
push:
10+
branches:
11+
- main
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: 22
21+
cache: 'npm'
22+
cache-dependency-path: 'package-lock.json'
23+
- run: npm ci
24+
- run: npm run test

0 commit comments

Comments
 (0)