Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: run e2e each time PRISM Agent is changed #420

Merged
merged 8 commits into from
Mar 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/e2e-tests.yml
Expand Up @@ -12,6 +12,7 @@ on:
- ".github/workflows/e2e-tests.yml"
- "infrastructure/shared/docker-compose.yml"
- "tests/e2e-tests/**"
- "prism-agent/service"
push:
branches:
- "main"
Expand Down Expand Up @@ -58,13 +59,19 @@ jobs:
version: v2.12.2 # defaults to 'latest'
legacy: true # will also install in PATH as `docker-compose`

- name: Update .env file to the latest version
- name: Build local version of PRISM Agent
env:
ENV_FILE: "../../infrastructure/local/.env"
PRISM_AGENT_PATH: "../../prism-agent/service/"
GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
run: |
../../infrastructure/local/update_env.sh
cat ../../infrastructure/local/.env

cd "${PRISM_AGENT_PATH}" || exit 129
sbt docker:publishLocal
PRISM_AGENT_VERSION=$(cut version.sbt -d '=' -f2 | tr -d '" ')
sed -i.bak "s/PRISM_AGENT_VERSION=.*/PRISM_AGENT_VERSION=${PRISM_AGENT_VERSION}/" "${ENV_FILE}" && rm -f "${ENV_FILE}.bak"
cat "${ENV_FILE}"
- name: Start services for issuer
env:
PORT: 8080
Expand Down