Skip to content

Commit

Permalink
Only setting env var once
Browse files Browse the repository at this point in the history
Trying out setting the environment variable just once, in the docker compose line. I have high hopes for this test :)
  • Loading branch information
nataliejschultz committed Sep 20, 2023
1 parent 8e0c222 commit db2ea77
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/nominatim-docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
GEOFABRIK_QUERY_URL: "https://geocoding.geofabrik.de/${{ secrets.GEOFABRIK_API }}"
TEST_KEY: ${{ secrets.TEST_SECRET }}
TEST_ENVVAR: "https://geocoding.geofabrik.de/${{ secrets.TEST_SECRET }}"
TEST_STR: "https://geocoding.geofabrik.de/"
# GEOFABRIK_QUERY_URL: "https://geocoding.geofabrik.de/${{ secrets.GEOFABRIK_API }}"
# TEST_KEY: ${{ secrets.TEST_SECRET }}
# TEST_ENVVAR: "https://geocoding.geofabrik.de/${{ secrets.TEST_SECRET }}"
# TEST_STR: "https://geocoding.geofabrik.de/"

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -34,13 +34,7 @@ jobs:
- name: Workflow test
run: echo Smoke test

- name: Variable
run: echo "TEST_KEY=$TEST_KEY" > emission/integrationTests/.env

- name: Variable2
run: cat emission/integrationTests/.env

- name: Test nominatim
run: docker-compose -f emission/integrationTests/docker-compose.yml up --exit-code-from web-server
run: TEST_KEY=${{ secrets.TEST_SECRET }} docker-compose -f emission/integrationTests/docker-compose.yml up --exit-code-from web-server


0 comments on commit db2ea77

Please sign in to comment.