Skip to content

fix(deps): update dependency cryptography to v41.0.2 [security] (#118) #166

fix(deps): update dependency cryptography to v41.0.2 [security] (#118)

fix(deps): update dependency cryptography to v41.0.2 [security] (#118) #166

Workflow file for this run

name: ✅ Test
on:
push:
branches: ["**"]
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}
env:
ADMINS_LIST: [email protected]
AUTHENTICATOR_SECRET: test-authenticator-dummy-secret
HEALTCHECKSIO_API_KEY: test-healthchecksio-dummy-api-key
SECRET_KEY: test-key-dummy-secret
SERVER_NAME: localhost:5000
SQLALCHEMY_DATABASE_URI: postgresql://postgres:postgres@localhost:5432/recosante
TEST_DATABASE_URL: postgresql://postgres:postgres@localhost:5433/recosante_test
VAPID_PRIVATE_KEY: MHcCAQEEIMo8C2KJ8FiR26MSaTlRRtUXmKto60DEedkShCUkyD74oAoGCCqGSM49AwEHoUQDQgAEWlEpZJ49k/GKiLPN6LSlXS4BPrbjRPqiSV+4o4ROhbv2yvr+WXwFJMxVf7X7Bd0w6t2ooh0Jv5RTGZ+zVI8v9A==
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: postgres:15.2
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: recosante
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
dbtest:
image: postgres:15.2
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: recosante_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5433:5432
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11.3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Restore yarn cache
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: |
cd api
pip install poetry
yarn install --prefer-offline --frozen-lockfile
poetry install
- name: Reconfigure Locales
run: |
sudo locale-gen fr_FR.UTF-8
export LC_ALL="fr_FR.UTF-8"
export LC_CTYPE="fr_FR.UTF-8"
sudo dpkg-reconfigure locales
- name: Test
run: yarn test