From 587315347c03330771116991f47db23329f688e4 Mon Sep 17 00:00:00 2001 From: Peter Baumgartner Date: Fri, 9 Feb 2024 15:55:53 -0700 Subject: [PATCH] Test client files --- .github/workflows/main.yml | 8 ++++++++ client/package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 489c41a..12fc4ef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 diff --git a/client/package.json b/client/package.json index b5f99f1..15afebc 100644 --- a/client/package.json +++ b/client/package.json @@ -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": "",