Skip to content

replace leftover use of set-output in GH actions workflow #4925

replace leftover use of set-output in GH actions workflow

replace leftover use of set-output in GH actions workflow #4925

Workflow file for this run

name: API tests
on:
push:
paths:
- 'api/**'
- 'geoprocessing/**'
- '.github/**'
workflow_dispatch:
jobs:
test-api-e2e:
name: E2E tests - API
runs-on: ubuntu-22.04
timeout-minutes: 30
env:
API_SERVICE_PORT: 3130
API_SERVICE_URL: http://api:3000
API_AUTH_JWT_SECRET: 'authJwtSecret'
API_RUN_MIGRATIONS_ON_STARTUP: "false"
API_AUTH_X_API_KEY: 'authXApiKey'
API_LOGGING_MUTE_ALL: "true"
API_POSTGRES_USER: marxan-api
API_POSTGRES_PASSWORD: 'apiPostgresPassword'
API_POSTGRES_DB: marxan-api
POSTGRES_API_SERVICE_PORT: 3532
GEOPROCESSING_SERVICE_PORT: 3140
GEOPROCESSING_RUN_MIGRATIONS_ON_STARTUP: "false"
GEO_POSTGRES_USER: marxan-geo-api
GEO_POSTGRES_PASSWORD: 'geoprocessingPostgresPassword'
GEO_POSTGRES_DB: marxan-geo-api
POSTGRES_GEO_SERVICE_PORT: 3533
REDIS_API_SERVICE_PORT: 3479
CLONING_SIGNING_SECRET: 'LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlKS0FJQkFBS0NBZ0VBeXdUVVZnS2Z5TXcrNjgyMHEzcmU1U2QwZFhpNWRLMVNhblJNenY0NEpYMjRvSm1TCjJyNGVFZUp4Y25TLzFmcFkxSzJSVU9KYXhESVFVY24rejdKREExNXVVRTk3SmhlVGIzSzRTMjg4Z0lQWVovTnQKUXpWTXU4WHErU05yZ3l1ckZEc01keXJ3QTFWalE4QTFLRDNML2loTkVHdGFWZjhLR08zNHNDWEJwRXZsbE82YgplMVFKT0MrMndCcGllNE5iKzRlREp5SGJkOWhrL3ZpdU90N0F1SEVjNDdFWUU4MVlyVzQxaXMxQXZVSlp3bnljCnZkUmZwZXZ4T0dnbVFoWU9IRUFCdmUzV3pldDYzT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hSTFmOGJMYlIKZnFGSzJPLy9pQU1lQnlIdE4xZ3EwZi9uT3pDYzNQVllaaW5FWVF1ZkJYWER0aStZNXRJMG5DS1J4b2NTR1pZOApma3ZrMmF2d1h6Y0J3OGJvK2F5K3lGckExdXFkZWtJUDBXdXNEekRzeGs4a2dQT1U0NTNwQVZCZ09NZDRjUi81CnAxZkMzLytiRU9qbllPa3hsWEtXMlFnU1Rmck9LUlJ6QW9JQkFCbVRRQkhYWFozY2hGM1hMNXU3U3B6bDFpVEoKTmh2WDl0VXM0QnYrSzZVNFdkdkdJTWpZWi9SMkhJZFYrN3ppbmNJSlJPMmZuTStXcXY3U1JXeFB3cTJZUGozNQphdFM4UzZZYmVBNkp2N3NuK3oxRlJSRzZ2OTVwRGZVa1o3OUh1N2swVlhWeEErQ1d4Yjh4WEtiTlpQTjh5Q0NUCm4yMXdTR2FGSXVmckFrRzIzUFcrNEVLK2RKU25IMXdLT3NZTzJXN3BwT0wwUzdqRG05WWd3a2NBUk9pSVpYRUIKKzhyR09DaDJOS0FtdDE3dXk5S0E5UUVqOXlMR1V3N0Q4UUkwbHhnVmMvcS94bnNZdU9FakRXRGp3d1JObFpCVQp5NGRQYVBxRlNreU12Y3JWUDBsZmRQUzkzT2RxRGdKQklINHJJRE9NUTdnUGd5RitiOEJFYldmTWwxND0KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout envs
run: docker-compose -f docker-compose-test-e2e.yml -f docker-compose-test-e2e.ci.yml config
- name: Run CI tests via make task
run: make test-e2e-api environment=ci
test-geoprocessing-e2e:
name: E2E tests - Geoprocessing
runs-on: ubuntu-22.04
timeout-minutes: 30
env:
API_SERVICE_PORT: 3130
API_SERVICE_URL: http://api:3000
API_AUTH_JWT_SECRET: 'authJwtSecret'
API_RUN_MIGRATIONS_ON_STARTUP: "false"
API_AUTH_X_API_KEY: 'authXApiKey'
API_LOGGING_MUTE_ALL: "true"
API_POSTGRES_USER: marxan-api
API_POSTGRES_PASSWORD: 'apiPostgresPassword'
API_POSTGRES_DB: marxan-api
POSTGRES_API_SERVICE_PORT: 3532
GEOPROCESSING_SERVICE_PORT: 3140
GEOPROCESSING_RUN_MIGRATIONS_ON_STARTUP: "false"
GEO_POSTGRES_USER: marxan-geo-api
GEO_POSTGRES_PASSWORD: 'geoprocessingPostgresPassword'
GEO_POSTGRES_DB: marxan-geo-api
POSTGRES_GEO_SERVICE_PORT: 3533
REDIS_API_SERVICE_PORT: 3479
CLONING_SIGNING_SECRET: 'LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlKS0FJQkFBS0NBZ0VBeXdUVVZnS2Z5TXcrNjgyMHEzcmU1U2QwZFhpNWRLMVNhblJNenY0NEpYMjRvSm1TCjJyNGVFZUp4Y25TLzFmcFkxSzJSVU9KYXhESVFVY24rejdKREExNXVVRTk3SmhlVGIzSzRTMjg4Z0lQWVovTnQKUXpWTXU4WHErU05yZ3l1ckZEc01keXJ3QTFWalE4QTFLRDNML2loTkVHdGFWZjhLR08zNHNDWEJwRXZsbE82YgplMVFKT0MrMndCcGllNE5iKzRlREp5SGJkOWhrL3ZpdU90N0F1SEVjNDdFWUU4MVlyVzQxaXMxQXZVSlp3bnljCnZkUmZwZXZ4T0dnbVFoWU9IRUFCdmUzV3pldDYzTEVvNkMrN3JVZXk2NFpPeUlQQ3JSTzJQRW5URnpXa0ZNbzYKUjNZazE3Z1ZxZ0ZiVXd3anQ4QTFGV2w3SVkwRkw5UjU1aU94a1hlVURrTWVpR0NVMGJlL0MwS3hTZGFDNGFjVQpBYXROVTdXNjc0YnVQc2hOc0lKZGpoNDk4TzlGSGJpdWt4V09QWTVUeWNocUxjZWFaVnMwRU9YVWh1aVRIaGd4CktyMTlyaHdpd0hSNEkrZGcrUnBhUEhaZ2VKTmc3bTd4Qmd0dGE0Ync5eVJ0TGRQL3kvZVROeUdHaXZHT25HRjcKZWZOZ0ZKRG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SlJPMmZuTStXcXY3U1JXeFB3cTJZUGozNQphdFM4UzZZYmVBNkp2N3NuK3oxRlJSRzZ2OTVwRGZVa1o3OUh1N2swVlhWeEErQ1d4Yjh4WEtiTlpQTjh5Q0NUCm4yMXdTR2FGSXVmckFrRzIzUFcrNEVLK2RKU25IMXdLT3NZTzJXN3BwT0wwUzdqRG05WWd3a2NBUk9pSVpYRUIKKzhyR09DaDJOS0FtdDE3dXk5S0E5UUVqOXlMR1V3N0Q4UUkwbHhnVmMvcS94bnNZdU9FakRXRGp3d1JObFpCVQp5NGRQYVBxRlNreU12Y3JWUDBsZmRQUzkzT2RxRGdKQklINHJJRE9NUTdnUGd5RitiOEJFYldmTWwxND0KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout envs
run: docker-compose -f docker-compose-test-e2e.yml -f docker-compose-test-e2e.ci.yml config
- name: Run CI tests via make task
run: make test-e2e-geoprocessing environment=ci
test-api-unit:
name: Unit tests - API
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run API unit Tests
run: make test-unit-api
test-geo-unit:
name: Unit tests - Geoprocessing
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run Geoprocessing Unit Tests
run: make test-unit-geo