Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
40 changes: 0 additions & 40 deletions .github/workflows/1_tests.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/2_coverage.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/3_linting.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/4_docs_build.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/5_docs_deploy.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/6_pypi_release.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI/CD Pipeline

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Run lint
run: npm run lint

- name: Run tests
run: npm test

- name: Build Docker image
run: docker build -t myapp:${{ github.sha }} .
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:20
WORKDIR /app
COPY . .
RUN npm install
CMD ["node", "src/app.js"]
42 changes: 42 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
pipeline {
agent any

tools {
nodejs 'NodeJS-20'
}

stages {
stage('Checkout') {
steps {
checkout scm
}
}

stage('Install Dependencies') {
steps {
sh 'npm install'
}
}

stage('Lint') {
steps {
sh 'npm run lint'
}
}

stage('Test') {
steps {
sh 'npm test'
}
}

stage('Build Docker Image') {
steps {
script {
def commit = sh(returnStdout: true, script: 'git rev-parse HEAD').trim()
sh "docker build -t myapp:${commit} ."
}
}
}
}
}
Binary file modified README.md
Binary file not shown.
16 changes: 16 additions & 0 deletions node_modules/.bin/acorn

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading