Skip to content

Commit 01b4034

Browse files
Merge pull request #5 from meshcloud/feature/validate-step-id-part-2
feat: refactor the entire implementation for testability
2 parents ee34846 + 8123d88 commit 01b4034

File tree

14 files changed

+5849
-383
lines changed

14 files changed

+5849
-383
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI Tests
2+
3+
on:
4+
push:
5+
branches: [ main, develop, 'feature/**' ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [20.x]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'npm'
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Run tests
31+
run: npm test
32+
33+
- name: Build action
34+
run: npm run build
35+
36+
- name: Check if dist/ is up to date
37+
run: |
38+
if [ -n "$(git status --porcelain dist/)" ]; then
39+
echo "dist/ directory is not up to date. Please run 'npm run build' and commit the changes."
40+
git status --porcelain dist/
41+
exit 1
42+
fi
43+

.github/workflows/release.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Node.js
22
node_modules/
33
build/
4+
coverage/
45

56
# TypeScript
67
*.tsbuildinfo

0 commit comments

Comments
 (0)