Skip to content

Commit 09116c3

Browse files
Merge pull request #112 from bg-playground/copilot/add-github-actions-workflows
Add frontend CI, Docker build workflows, and backend CI path filters
2 parents bcde21c + cbad72d commit 09116c3

4 files changed

Lines changed: 84 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- 'backend/**'
9+
- '.github/workflows/ci.yml'
710
pull_request:
811
branches:
912
- main
13+
paths:
14+
- 'backend/**'
15+
- '.github/workflows/ci.yml'
1016

1117
permissions:
1218
contents: write

.github/workflows/docker.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Docker Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'backend/**'
9+
- 'frontend/**'
10+
- 'docker-compose.yml'
11+
- 'Dockerfile*'
12+
- '.github/workflows/docker.yml'
13+
14+
jobs:
15+
build:
16+
name: Build Docker Images
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Build backend Docker image
26+
run: docker build ./backend
27+
28+
- name: Build frontend Docker image
29+
run: docker build ./frontend

.github/workflows/frontend-ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Frontend CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'frontend/**'
9+
- '.github/workflows/frontend-ci.yml'
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- 'frontend/**'
15+
- '.github/workflows/frontend-ci.yml'
16+
17+
jobs:
18+
build:
19+
name: Lint and Build
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
defaults:
24+
run:
25+
working-directory: frontend
26+
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v4
30+
31+
- name: Set up Node.js
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: '20'
35+
cache: 'npm'
36+
cache-dependency-path: frontend/package-lock.json
37+
38+
- name: Install dependencies
39+
run: npm ci --legacy-peer-deps
40+
41+
- name: Run ESLint
42+
run: npm run lint
43+
44+
- name: Build (includes TypeScript type check)
45+
run: npm run build

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# BGSTM - Professional Software Testing Framework
22

3+
[![Backend CI](https://github.com/bg-playground/BGSTM/actions/workflows/ci.yml/badge.svg)](https://github.com/bg-playground/BGSTM/actions/workflows/ci.yml)
4+
[![Frontend CI](https://github.com/bg-playground/BGSTM/actions/workflows/frontend-ci.yml/badge.svg)](https://github.com/bg-playground/BGSTM/actions/workflows/frontend-ci.yml)
5+
[![Docker Build](https://github.com/bg-playground/BGSTM/actions/workflows/docker.yml/badge.svg)](https://github.com/bg-playground/BGSTM/actions/workflows/docker.yml)
6+
37
**BGSTM** (Better Global Software Testing Methodology) is a comprehensive, professional software testing framework adaptable to various software development methodologies including Agile, Scrum, and Waterfall.
48

59
## 🎯 Overview

0 commit comments

Comments
 (0)