[TRA-15037] Revoir le contenu de l'e-mail transactionnel Gestion de bordereau / suite-transmission-bsd.html #10666
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: Integration tests | |
on: pull_request | |
jobs: | |
back: | |
runs-on: ubuntu-latest | |
name: Integration tests (chunk ${{ matrix.shard }}/${{ strategy.job-total }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm ci | |
- name: Start DB with docker | |
run: docker compose up -d | |
- name: Init DB & ES index | |
run: | | |
npx nx run back:codegen | |
npx nx run @td/prisma:generate | |
TERM=xterm bash ./scripts/deploy-db.sh | |
- name: Start queues | |
run: | | |
npx nx run-many -t serve --projects=tag:backend:queues --parallel=6 --configuration=integration & | |
sleep 5 | |
- name: Run integration tests | |
run: | | |
npx nx run back:test:integration -- --shard=${{ matrix.shard }}/${{ strategy.job-total }} | |
env: | |
TD_COMPANY_ELASTICSEARCH_URL: ${{ secrets.TD_COMPANY_ELASTICSEARCH_URL }} | |
TD_COMPANY_ELASTICSEARCH_CACERT: ${{ secrets.TD_COMPANY_ELASTICSEARCH_CACERT }} | |
NODE_ENV: test | |
VIRTUAL_HOST: $API_HOST | |
LETSENCRYPT_HOST: $API_HOST | |
EMAIL_BACKEND: "sendinblue" | |
SIB_BASE_URL: "http://mailservice" | |
MAIN_TEMPLATE_ID: "9" | |
FIRST_ONBOARDING_TEMPLATE_ID: "246" | |
PRODUCER_SECOND_ONBOARDING_TEMPLATE_ID: "248" | |
PROFESIONAL_SECOND_ONBOARDING_TEMPLATE_ID: "250" | |
VERIFIED_FOREIGN_TRANSPORTER_COMPANY_TEMPLATE_ID: "247" | |
SENDER_EMAIL_ADDRESS: "[email protected]" | |
SENDER_NAME: "Wastetracker corp." | |
POST_BACKEND: console | |
QUEUE_NAME_SENDMAIL: td-integration-tests-queue | |
REGISTRY_WHITE_LIST_IP: "11.11.11.11" | |
DATABASE_URL: 'postgresql://trackdechets:password@localhost:5432/prisma?schema=default$default' | |
REDIS_URL: redis://localhost:6379 | |
MONGO_URL: mongodb://trackdechets:password@localhost:27017 | |
SESSION_SECRET: any_secret | |
API_TOKEN_SECRET: any_secret | |
API_HOST: api.trackdechets.local | |
UI_HOST: trackdechets.local | |
ELASTIC_SEARCH_URL: http://localhost:9200 | |
OTEL_SDK_DISABLED: true | |
TD_COMPANY_ELASTICSEARCH_INDEX: stocketablissement-production | |
ALLOW_TEST_COMPANY: true | |
OIDC_PRIVATE_KEY: | | |
-----BEGIN PRIVATE KEY----- | |
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDCFg4UrY5xtulv | |
/NXKmL1J4qI1SopAfTNMo3X7p+kJO7plqUYjzaztcre1qfh0m33Sm1Q8oPbO/GpP | |
MU1/HgcceytgJ/b4UwufVVMl9BrMDYG8moDBylbVupFQS3Ly1L9i/iFG9Z9A9xzY | |
Zzf799A45bnvNXL6s2glzvjiRvfQ2NDF0anTcnZLcYtC7ugq1IMM+ihAcPfw8Qw2 | |
chN/SmP4qAM+PKaQwagmU7doqmmyN9u38AfoYZ1GCFhEs5TBBT6H6h9YdHeVtiIq | |
1c+fl03biSIfLrV7dUBD39gBmXBcL/30Ya3D82mCEUC4zg/UkOfQOmkmV3Lc8YUL | |
QZ8EJkBLAgMBAAECggEAVuVE/KEP6323WjpbBdAIv7HGahGrgGANvbxZsIhm34ls | |
VOPK0XDegZkhAybMZHjRhp+gwVxX5ChC+J3cUpOBH5FNxElgW6HizD2Jcq6t6LoL | |
YgPSrfEHm71iHg8JsgrqfUnGYFzMJmv88C6WdCtpgG/qJV1K00/Ly1G1QKoBffEs | |
+v4fAMJrCbUdCz1qW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|
-----END PRIVATE KEY---- | |
# Public key only for testing purposes | |
OIDC_PUBLIC_KEY: | | |
-----BEGIN PUBLIC KEY----- | |
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwhYOFK2Ocbbpb/zVypi9 | |
SeKiNUqKQH0zTKN1+6fpCTu6ZalGI82s7XK3tan4dJt90ptUPKD2zvxqTzFNfx4H | |
HHsrYCf2+FMLn1VTJfQazA2BvJqAwcpW1bqRUEty8tS/Yv4hRvWfQPcc2Gc3+/fQ | |
OOW57zVy+rNoJc744kb30NjQxdGp03J2S3GLQu7oKtSDDPooQHD38PEMNnITf0pj | |
+KgDPjymkMGoJlO3aKppsjfbt/AH6GGdRghYRLOUwQU+h+ofWHR3lbYiKtXPn5dN | |
24kiHy61e3VAQ9/YAZlwXC/99GGtw/NpghFAuM4P1JDn0DppJldy3PGFC0GfBCZA | |
SwIDAQAB | |
-----END PUBLIC KEY----- | |
WEBHOOK_TOKEN_ENCRYPTION_KEY: abcdefgh12345678abcdefgh12345678 | |
GERICO_WEBHOOK_SLUG: secret-slug-lorem | |
GERICO_WEBHOOK_TOKEN: wxcfdzr | |