Skip to content

Commit

Permalink
tests: run e2e each time PRISM Agent is changed (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
abalias authored Mar 6, 2023
1 parent 226a481 commit 90a5d00
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
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

0 comments on commit 90a5d00

Please sign in to comment.