-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to install package and test only two tests
- Loading branch information
Showing
2 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: "ALKiln/github_server: Isolated docassemble tests" | ||
description: "Automatically test docassemble interviews on GitHub's servers, in an isolated environment. Avoids docassemble reload errors and other external factors" | ||
description: "Automatically test docassemble interviews on GitHub's servers, in an isolated environment. Avoids docassemble reload errors and other external factors." | ||
|
||
|
||
inputs: | ||
|
@@ -30,17 +30,20 @@ runs: | |
run: | | ||
echo "DA_ADMIN_API_KEY=abcd1234abcd1234abcd5678abdc5678" >> $GITHUB_ENV | ||
shell: bash | ||
- name: Download and start docker | ||
- name: "github_server: Download and start docker" | ||
run: | | ||
mkdir /tmp/config | ||
echo "$CONFIG_CONTENTS" > /tmp/config/myconfig.yml | ||
docker pull brycewilley/smoldocassemble | ||
docker run --env DA_ADMIN_EMAIL="[email protected]" --env DA_ADMIN_PASSWORD="password" --env DA_ADMIN_API_KEY="${{ env.DA_ADMIN_API_KEY }}" --env DA_CONFIG=/tmp/config/myconfig.yml --volume /tmp/config:/tmp/config --cap-add SYS_PTRACE --memory="4gb" -d -p 80:80 jhpyle/docassemble | ||
# TODO before merge: do a while loop here until `localhost` shows "It's ready" | ||
sleep 480 | ||
sleep 600 | ||
curl localhost | ||
shell: bash | ||
- name: Run Kiln | ||
- name: "github_server: Install the package" | ||
run: alkiln-startserver | ||
shell: bash | ||
- name: "github_server: Run Kiln" | ||
# TODO: Research how to get this to always be the same branch we're on | ||
uses: SuffolkLITLab/ALKiln@v5 | ||
with: | ||
|
@@ -50,4 +53,4 @@ runs: | |
# TODO: create an arifact for this instead | ||
run: | | ||
docker logs $(docker ps --filter "ancestor=jhpyle/docassemble" --format {{.ID}}) | ||
shell: bash | ||
shell: bash |