Added web e2e tests and CI integration #5
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_DB: mynance | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- name: checkout branch | |
uses: actions/checkout@v3 | |
- name: Install dependecies | |
run: yarn | |
- name: Install playwright driver | |
run: yarn playwright install chromium | |
- name: Create db | |
run: yarn db-push | |
- name: Run CI | |
env: | |
SERVER_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/mynance | |
run: yarn ci |