Skip to content

Merge pull request #45 from safeinsights/OTTER-51-Researcher-Step2 #295

Merge pull request #45 from safeinsights/OTTER-51-Researcher-Step2

Merge pull request #45 from safeinsights/OTTER-51-Researcher-Step2 #295

Workflow file for this run

name: Checks
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
all:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Setup caching for Docker layers
uses: docker/bake-action@master
with:
push: false
load: true
files: |-
docker-compose.yml
.github/workflows/gh-docker-compse-cache.json
- name: Run docker compose
run: docker compose up postgres mgmnt-app --wait --detach --wait-timeout 60
env:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
E2E_CLERK_RESEARCHER_EMAIL: ${{ secrets.E2E_CLERK_RESEARCHER_EMAIL }}
E2E_CLERK_RESEARCHER_PASSWORD: ${{ secrets.E2E_CLERK_RESEARCHER_PASSWORD }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
E2E_CLERK_MEMBER_EMAIL: ${{ secrets.E2E_CLERK_MEMBER_EMAIL }}
E2E_CLERK_MEMBER_PASSWORD: ${{ secrets.E2E_CLERK_MEMBER_PASSWORD }}
E2E_CLERK_ADMIN_EMAIL: ${{ secrets.E2E_CLERK_ADMIN_EMAIL }}
E2E_CLERK_ADMIN_PASSWORD: ${{ secrets.E2E_CLERK_ADMIN_PASSWORD }}
- name: Run Specs
run: docker compose exec mgmnt-app npm run ci
- name: Test build
run: |
echo NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }} > .env
DOCKER_TAG=ci-test npm run build:docker:ci
- name: display docker logs
run: docker compose logs
if: always()
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: playwright-report
retention-days: 30