Skip to content

Commit 817e8b7

Browse files
add ci-cd pipeline in open fiesta
1 parent 58daee4 commit 817e8b7

File tree

5 files changed

+1520
-9
lines changed

5 files changed

+1520
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy Code
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull-requests:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-24.04-arm
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: action/setup-node@v4
19+
with:
20+
node-version: "22"
21+
cache: "npm"
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Build Open fiesta
27+
run: npm run build
28+
29+
docker:
30+
runs-on: ubuntu-24.04-arm
31+
needs: build
32+
33+
steps:
34+
- name: Checkout repository
35+
uses: actions/checkout@v4
36+
37+
- name: Build Docker image
38+
run: npm run docker:build
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Auto Label Conflicts
2+
3+
permissions:
4+
contents: read
5+
issues: write
6+
pull-requests: write
7+
8+
on:
9+
push:
10+
branches: [main]
11+
pull-request:
12+
branches: [main]
13+
14+
jobs:
15+
auto-Label:
16+
if: github.repository == 'NiladriHazra/Open-Fiesta'
17+
run-on: ubuntu-24.04-arm
18+
setps:
19+
- uses: prince-chrismc/label-merge-conflicts-action@v3
20+
with:
21+
conflict_label_name: "Merge Conflict"
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
max_retries: 5
24+
wait_ms: 15000
25+
detect_merge_changes: false
26+
conflict_comment: |
27+
Conflict have been detected against base branch. please solve merge connflict before merge into your branch

.github/workflows/linter.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Lint Code Base
2+
3+
on:
4+
pull-request:
5+
branches:
6+
-main
7+
8+
jobs:
9+
lint:
10+
run-on: ubuntu-24.04-arm
11+
permissions:
12+
contents: read
13+
packages: read
14+
statues: write
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
node-version: "22"
21+
cache: "npm"
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v4
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Run Lint
30+
run: npm run lint -- --quiet
31+
32+
- name: Run unimported
33+
run: npm run unimported
34+

0 commit comments

Comments
 (0)