Fix CI: resolve /app path and fix-base image issues
Browse files- Tests: symlink /app -> $GITHUB_WORKSPACE so Config paths resolve
- Docker: build fix-base locally first before dependent images
- Use direct docker build commands (simpler, no registry needed)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- .github/workflows/ci.yml +8 -15
.github/workflows/ci.yml
CHANGED
|
@@ -27,7 +27,9 @@ jobs:
|
|
| 27 |
pip install pytest
|
| 28 |
|
| 29 |
- name: Run tests
|
| 30 |
-
run:
|
|
|
|
|
|
|
| 31 |
|
| 32 |
docker-build:
|
| 33 |
name: Docker Build Check
|
|
@@ -37,23 +39,14 @@ jobs:
|
|
| 37 |
- name: Checkout code
|
| 38 |
uses: actions/checkout@v4
|
| 39 |
|
| 40 |
-
- name:
|
| 41 |
-
|
| 42 |
|
| 43 |
- name: Build frontend
|
| 44 |
-
|
| 45 |
-
with:
|
| 46 |
-
context: ./frontend
|
| 47 |
-
push: false
|
| 48 |
|
| 49 |
- name: Build matcher
|
| 50 |
-
|
| 51 |
-
with:
|
| 52 |
-
context: ./matcher
|
| 53 |
-
push: false
|
| 54 |
|
| 55 |
- name: Build dashboard
|
| 56 |
-
|
| 57 |
-
with:
|
| 58 |
-
context: ./dashboard
|
| 59 |
-
push: false
|
|
|
|
| 27 |
pip install pytest
|
| 28 |
|
| 29 |
- name: Run tests
|
| 30 |
+
run: |
|
| 31 |
+
sudo ln -s $GITHUB_WORKSPACE /app
|
| 32 |
+
pytest matcher/test_matcher.py -v
|
| 33 |
|
| 34 |
docker-build:
|
| 35 |
name: Docker Build Check
|
|
|
|
| 39 |
- name: Checkout code
|
| 40 |
uses: actions/checkout@v4
|
| 41 |
|
| 42 |
+
- name: Build fix-base (local base image)
|
| 43 |
+
run: docker build -t fix-base -f Dockerfile.base .
|
| 44 |
|
| 45 |
- name: Build frontend
|
| 46 |
+
run: docker build -t stockex-frontend ./frontend
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
- name: Build matcher
|
| 49 |
+
run: docker build -t stockex-matcher ./matcher
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
- name: Build dashboard
|
| 52 |
+
run: docker build -t stockex-dashboard ./dashboard
|
|
|
|
|
|
|
|
|