Skip to content

Commit 22229fb

Browse files
authored
chore: add ci workflow (#7)
1 parent ea10c0e commit 22229fb

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main", "dev" ]
6+
pull_request:
7+
branches: [ "main", "dev" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18.x, 20.x]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Type check
30+
run: npm run build
31+
32+
- name: Lint
33+
run: npm run lint
34+
35+
- name: Build
36+
run: npm run build
37+
38+
# Add caching for faster builds
39+
- name: Cache node modules
40+
uses: actions/cache@v4
41+
with:
42+
path: ~/.npm
43+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
44+
restore-keys: |
45+
${{ runner.os }}-node-

README.md

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

3+
[![CI](https://github.com/openMF/mifos-gazelle-demo-runtime/actions/workflows/ci.yml/badge.svg)](https://github.com/openMF/mifos-gazelle-demo-runtime/actions/workflows/ci.yml)
4+
35
This repo contains the runtime environment for Mifo Gazelle Demos. This is currently WIP.
46

57
branch main - is release/stable code

0 commit comments

Comments
 (0)