Skip to content

Commit

Permalink
Create test_api
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsaporiti authored Aug 8, 2024
1 parent c0ab609 commit 70534ae
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/test_api
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


0 comments on commit 70534ae

Please sign in to comment.