Skip to content

Commit 8340958

Browse files
authored
feat: migrate CI from CircleCI to GitHub Actions (#310)
Add comprehensive GitHub Actions CI workflow that matches CircleCI functionality: - Node.js 20.17 environment setup - MongoDB 7.0 service container - Full test suite (prettier, eslint, package.json check, unit tests) - Production build verification Update README badge to show GitHub Actions CI status instead of CircleCI. This provides better integration with GitHub repository and consolidates CI/CD on a single platform alongside existing deployment automation. Relates to #281
1 parent 2e7a9e3 commit 8340958

File tree

3 files changed

+40
-19
lines changed

3 files changed

+40
-19
lines changed

.circleci/config.yml

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

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
14+
services:
15+
mongodb:
16+
image: mongo:7.0
17+
ports:
18+
- 27017:27017
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '20.17'
28+
cache: 'npm'
29+
30+
- name: Install dependencies
31+
run: npm install
32+
33+
- name: Run tests
34+
run: npm test
35+
env:
36+
MONGO_URL: mongodb://127.0.0.1:27017/worlddriven_test
37+
38+
- name: Build
39+
run: npm run build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Worlddriven Core
22

3-
[![CircleCI](https://circleci.com/gh/TooAngel/worlddriven.svg?style=svg)](https://circleci.com/gh/TooAngel/worlddriven)
3+
[![CI](https://github.com/TooAngel/worlddriven/actions/workflows/ci.yml/badge.svg)](https://github.com/TooAngel/worlddriven/actions/workflows/ci.yml)
44
[![Discord](https://img.shields.io/discord/496780499059572756?logo=discord&logoColor=white&label=Discord&color=7289da)](https://discord.gg/RrGFHKb)
55
[![Code Climate Maintainability](https://api.codeclimate.com/v1/badges/ec4136b6d2eeff72f192/maintainability)](https://codeclimate.com/github/TooAngel/worlddriven/maintainability)
66

0 commit comments

Comments
 (0)