Skip to content

Add keycloak env variables to CI #40

Add keycloak env variables to CI

Add keycloak env variables to CI #40

Workflow file for this run

name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: groonga/pgroonga:3.1.7-alpine-16-slim
ports:
- "5432:5432"
env:
POSTGRES_PASSWORD: password
POSTGRES_HOST_AUTH_METHOD: trust
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11.7
- name: Cache PIP
uses: actions/cache@v3
with:
path: |
~/.cache/pip
.venv
key: pip-${{ matrix.python-version }}-${{ hashFiles('pdm.lock') }}
- name: Install PDM
run: |
pip install pdm
pdm sync --clean
- run: |
pdm run coverage run
pdm run coverage report -m
pdm run coverage xml
env:
DATABASE_TEST_URL: "postgresql+asyncpg://postgres:password@localhost/postgres"
DATABASE_NAME: " "
DATABASE_HOST: " "
DATABASE_USERNAME: " "
DATABASE_PASSWORD: " "
S3_PUBLIC_URL: "http://s3.example"
S3_ENDPOINT_URL: " "
S3_ACCESS_KEY: " "
S3_SECRET_KEY: " "
AUTH_PUBLIC_KEY: |
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDD+kP/va1niViA4a1N+cIUBTa9
UXdTDQ0c+b3h/Et6Ix9LjGM9lBnG79LoGtDeKa/2jV88dOn7sJaWU7FCU7AF+fHk
9bv7waqsr3BzY2FbvuQUqmp+5yplnKRGNQisBmOl15DYsb37QQvuNU+neiB60lu0
efih1032Z0EViiCxWwIDAQAB
-----END PUBLIC KEY-----
AUTH_PRIVATE_KEY: |
-----BEGIN PRIVATE KEY-----
MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAMP6Q/+9rWeJWIDh
rU35whQFNr1Rd1MNDRz5veH8S3ojH0uMYz2UGcbv0uga0N4pr/aNXzx06fuwlpZT
sUJTsAX58eT1u/vBqqyvcHNjYVu+5BSqan7nKmWcpEY1CKwGY6XXkNixvftBC+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