Skip to content

Commit f72c6fa

Browse files
authored
feat: add CI workflow (#389)
1 parent 1b5d9aa commit f72c6fa

2 files changed

Lines changed: 65 additions & 3 deletions

File tree

.github/workflows/ci-smoke.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: CI Smoke Checks
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
env:
11+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
12+
13+
jobs:
14+
sayhello-build-run:
15+
name: Sayhello Build and Run
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v5
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.12"
25+
26+
- name: Set up uv
27+
uses: astral-sh/setup-uv@v4
28+
with:
29+
enable-cache: true
30+
31+
- name: Sync Python dependencies
32+
run: uv sync
33+
34+
- name: Build sayhello pipeline
35+
run: uv run ultrarag build examples/experiments/sayhello.yaml
36+
37+
- name: Run sayhello pipeline
38+
run: uv run ultrarag run examples/experiments/sayhello.yaml
39+
40+
frontend-build:
41+
name: Frontend Build
42+
runs-on: ubuntu-latest
43+
defaults:
44+
run:
45+
working-directory: ui/frontend
46+
steps:
47+
- name: Checkout
48+
uses: actions/checkout@v5
49+
50+
- name: Set up Node.js
51+
uses: actions/setup-node@v4
52+
with:
53+
node-version: "24"
54+
cache: npm
55+
cache-dependency-path: ui/frontend/package-lock.json
56+
57+
- name: Install frontend dependencies
58+
run: npm ci
59+
60+
- name: Build frontend
61+
run: npm run build

.github/workflows/dockerhub-nightly.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
env:
99
IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/ultrarag
1010
IMAGE_TAG: v0.3.0
11+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
1112

1213
jobs:
1314
check-recent-commits:
@@ -16,7 +17,7 @@ jobs:
1617
should_build: ${{ steps.commit-check.outputs.should_build }}
1718
steps:
1819
- name: Checkout
19-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2021
with:
2122
fetch-depth: 1
2223

@@ -59,7 +60,7 @@ jobs:
5960
tag_suffix: ""
6061
steps:
6162
- name: Checkout
62-
uses: actions/checkout@v4
63+
uses: actions/checkout@v5
6364
- name: Set up QEMU
6465
uses: docker/setup-qemu-action@v3
6566
- name: Set up Buildx
@@ -70,7 +71,7 @@ jobs:
7071
username: ${{ secrets.DOCKERHUB_USERNAME }}
7172
password: ${{ secrets.DOCKERHUB_TOKEN }}
7273
- name: Build and push
73-
uses: docker/build-push-action@v5
74+
uses: docker/build-push-action@v6
7475
with:
7576
context: .
7677
file: ${{ matrix.dockerfile }}

0 commit comments

Comments
 (0)