Skip to content

feat: redirect to CSP banner #1396

feat: redirect to CSP banner

feat: redirect to CSP banner #1396

Workflow file for this run

name: Check
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
steps:
- name: Pass
run: echo "yeah!"