Skip to content

Commit 90abd20

Browse files
authored
Revert changes (#45)
* Revert "chore: enable test against main branch (#42)" This reverts commit 7d4097a. * Revert "feat: test website pages (#41)" This reverts commit 2f1c441.
1 parent 7d4097a commit 90abd20

3 files changed

Lines changed: 7 additions & 24 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ defaults:
2727
shell: bash
2828

2929
jobs:
30+
# Build job
3031
build:
3132
runs-on: ubuntu-latest
3233
env:
@@ -55,11 +56,7 @@ jobs:
5556
uses: actions/upload-pages-artifact@v3
5657
with:
5758
path: ./public
58-
- name: Test website pages
59-
run: |
60-
nohup make all-dev &
61-
sleep 5
62-
make test
59+
6360
- name: Deploy
6461
uses: peaceiris/actions-gh-pages@v4
6562
# If you're changing the branch from main,

Makefile

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,15 @@ compile-site:
66
hugo
77
echo "Website generated"
88

9+
serve-site-dev:
10+
echo "Serving website"
11+
hugo server --bind=0.0.0.0
12+
913
compile-assets:
1014
echo "Compiling assets"
1115
cd themes/conventional-branch && npm install && npm run build
1216
echo "Assets compiled"
1317

14-
serve-site-dev:
15-
echo "Serving website"
16-
hugo server --bind=0.0.0.0
17-
1818
compile-assets-dev:
1919
echo "Compiling assets"
2020
cd themes/conventional-branch && npm install && npm run start &
21-
22-
test:
23-
@echo "Running site tests against http://localhost:1313/ ..."
24-
@pages="\
25-
http://localhost:1313/ \
26-
http://localhost:1313/zh/ \
27-
http://localhost:1313/about/ \
28-
http://localhost:1313/#summary \
29-
http://localhost:1313/#specification" ;\
30-
for page in $$pages; do \
31-
echo -n "Testing $$page ... "; \
32-
curl -sSf -o /dev/null $$page && echo "✅ OK" || (echo "❌ FAILED"; exit 1); \
33-
done
34-

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ services:
99
- "1313:1313"
1010
working_dir: /src/
1111
volumes:
12-
- ./:/src/
12+
- ./:/src/

0 commit comments

Comments
 (0)