workflow fix
This commit is contained in:
@@ -13,6 +13,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
@@ -20,10 +22,10 @@ jobs:
|
|||||||
node-version: 22
|
node-version: 22
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: cd gpu-bg && npm ci
|
||||||
|
|
||||||
- name: Typecheck
|
- name: Typecheck
|
||||||
run: npm run typecheck
|
run: cd gpu-bg && npm run typecheck
|
||||||
|
|
||||||
# Vite build is done inside Docker, so this is just a fast sanity check.
|
# Vite build is done inside Docker, so this is just a fast sanity check.
|
||||||
# Full build + test happens in the Docker multi-stage build below.
|
# Full build + test happens in the Docker multi-stage build below.
|
||||||
@@ -35,6 +37,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
# Required: themes/hugo-coder is a git submodule; hugo fails with
|
||||||
|
# "theme not found" if it isn't initialized before docker build.
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
@@ -50,4 +56,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Smoke test
|
- name: Smoke test
|
||||||
run: |
|
run: |
|
||||||
curl -sf --retry 5 --retry-delay 2 http://localhost:80/ && echo "OK — site is live"
|
curl -sf --retry 5 --retry-delay 2 http://127.0.0.1:8080/ | grep -q 'id="gpu"' && echo "canvas OK"
|
||||||
|
curl -sf http://127.0.0.1:8080/gpu/engine.js -o /dev/null && echo "engine bundle OK"
|
||||||
|
curl -sf http://127.0.0.1:8080/about/ -o /dev/null && echo "about OK"
|
||||||
|
curl -sf http://127.0.0.1:8080/projects/ -o /dev/null && echo "projects OK"
|
||||||
|
curl -sf http://127.0.0.1:8080/resume/ -o /dev/null && echo "resume OK"
|
||||||
|
curl -sf http://127.0.0.1:8080/posts/ -o /dev/null && echo "posts OK"
|
||||||
|
curl -s http://127.0.0.1:8080/nonexistent -o /dev/null -w "%{http_code}\n" # expect 404
|
||||||
|
|||||||
Reference in New Issue
Block a user