Skip to content

Commit

Permalink
Test client files
Browse files Browse the repository at this point in the history
  • Loading branch information
ipmb committed Feb 9, 2024
1 parent 0a59958 commit 5873153
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
run: |
pip install django
django-admin startproject --template="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/zipball/$GITHUB_REF_NAME" --extension=py,rst,gitignore,cfg,in,yml,json,dockerignore --name=Makefile,Dockerfile testproj
- name: mock client build
run: |
mkdir -p client/dist
touch client/dist/index.js
working-directory: testproj
- name: start services
run: |
docker compose up -d
Expand All @@ -30,6 +35,9 @@ jobs:
- name: verify website running
run: |
curl -I --retry 10 --retry-connrefused --fail localhost:8000
- name: verify client build
run: |
curl -I --retry 10 --retry-connrefused --fail localhost:8000/static/index.js
- name: dump docker logs
run: |
set -x
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "echo \"Your client build command goes here\" && mkdir dist",
"build": "echo \"Your client build command goes here\" && mkdir -p dist",
"dev": "node -e \"console.log('Your client build/watch process goes here'); setInterval(() => {}, 99999999);\""
},
"author": "",
Expand Down

0 comments on commit 5873153

Please sign in to comment.