-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0ab609
commit 70534ae
Showing
1 changed file
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Test Issuer Node API | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
run-tests: | ||
name: Run tests | ||
permissions: | ||
id-token: write | ||
contents: write | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: build docker image | ||
run: docker build -t my-playwright-tests -f ./api_tests/Dockerfile ./api_tests | ||
|
||
- name: build issuer docker image | ||
run: make build | ||
|
||
- name: Docker Compose Infra | ||
uses: hoverkraft-tech/[email protected] | ||
with: | ||
compose-file: './infrastructure/local/docker-compose-infra.yml' | ||
services: | | ||
postgres | ||
vault | ||
test_local_files_apache | ||
|
||
|
||
- name: copy .env files | ||
run: | | ||
cp .env-api.sample .env-api | ||
cp .env-issuer.sample .env-issuer | ||
|
||
- name: Docker Compose Issuer Node | ||
uses: hoverkraft-tech/[email protected] | ||
with: | ||
compose-file: './infrastructure/local/docker-compose.yml' | ||
services: | | ||
api | ||
|
||
- name: Run tests | ||
run: docker run --rm --network issuer-network -e ISSUER_API_URL=http://issuer-api-1:3001 -e ISSUER_API_UI_AUTH_USER=user-issuer -e ISSUER_API_UI_AUTH_PASSWORD=password-issuer my-playwright-tests npx playwright test | ||
|
||
|