Skip to content

fix e2e

fix e2e #1397

Workflow file for this run

name: Check

Check failure on line 1 in .github/workflows/check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: test_e2e
on:
pull_request:
push:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: yarn
node-version: 16
- name: Install
run: yarn
- name: Lint
run: yarn test:lint --ignore-pattern '/__tests__/*'
type:
name: Type
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: yarn
node-version: 16
- name: Install
run: yarn
- name: Lint
run: yarn test:type
test_unit:
name: Unit Test
runs-on: ubuntu-latest
env:
DOMAIN_URL: http://localhost:3000
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: yarn
node-version: 16
- name: Install
run: yarn
- name: Test
run: yarn test:unit --coverage
- name: Upload coverage
run: yarn codecov
test_e2e:
name: E2E Test
runs-on: ubuntu-latest
env:
API_SECRET: test
DATABASE_URL: postgresql://test_db_user:test_db_password@localhost:5432/metiers_numeriques?schema=public
DOMAIN_URL: http://localhost:3000
NODE_ENV: production
REDIS_URL: redis://localhost:6379
services:
cache:
image: redis:6
ports:
- 6379:6379
options: >-
--entrypoint redis-server
db:
image: postgres:14
env:
POSTGRES_DB: metiers_numeriques
POSTGRES_USER: test_db_user
POSTGRES_PASSWORD: test_db_password
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5