-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use head_ref if PR, else ref_name * set pytest environment to 'test' * use vars instead of env for environment
- Loading branch information
1 parent
82b9cf1
commit 5a627fc
Showing
1 changed file
with
8 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,23 +21,17 @@ jobs: | |
test: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: ${{ github.ref_name }} | ||
name: test | ||
|
||
container: | ||
image: ghcr.io/hotosm/fmtm/backend:ci-${{ github.ref_name }} | ||
image: ghcr.io/hotosm/fmtm/backend:ci-${{ github.base_ref || github.ref_name }} | ||
env: | ||
ODK_CENTRAL_URL: https://central-proxy | ||
ODK_CENTRAL_USER: [email protected] | ||
ODK_CENTRAL_PASSWD: odk | ||
OSM_CLIENT_ID: test | ||
OSM_CLIENT_SECRET: test | ||
OSM_SECRET_KEY: test | ||
# Fix why env. vars not working below | ||
# OSM_CLIENT_ID: ${{ env.OSM_TEST_CLIENT_ID }} | ||
# OSM_CLIENT_SECRET: ${{ env.OSM_TEST_CLIENT_SECRET }} | ||
# OSM_SECRET_KEY: ${{ env.OSM_TEST_SECRET_KEY }} | ||
# FRONTEND_MAIN_URL: "ui-main:8080" | ||
# FRONTEND_MAP_URL: "ui-map:8081" | ||
ODK_CENTRAL_URL: ${{ vars.ODK_CENTRAL_URL }} | ||
ODK_CENTRAL_USER: ${{ vars.ODK_CENTRAL_USER }} | ||
ODK_CENTRAL_PASSWD: ${{ vars.ODK_CENTRAL_PASSWD }} | ||
OSM_CLIENT_ID: ${{ vars.OSM_CLIENT_ID }} | ||
OSM_CLIENT_SECRET: ${{ vars.OSM_CLIENT_SECRET }} | ||
OSM_SECRET_KEY: ${{ vars.OSM_SECRET_KEY }} | ||
options: --user root | ||
|
||
services: | ||
|