Skip to content

Commit

Permalink
ci: add maptiler key environment variable for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfb committed Nov 2, 2024
1 parent 0a197f2 commit 1f72f79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,7 @@ jobs:
run: npm ci

- name: Storybook visual tests
env:
VITE_MAPTILER_API_KEY: ${{ secrets.MAPTILER_API_KEY }}
run: npm run docker:compose:test:github

9 changes: 6 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@ services:
test: curl --fail http://localhost:6006/
command: >
sh -c "npm run storybook -- --no-open"
test-storybook:
image: velo.gl-test-storybook
build: ./config/test-storybook
volumes:
- ".:/app:rw"
#- "./__snapshots__:/app/__snapshots__:rw"
- ".:/app:ro"
- "./__snapshots__:/app/__snapshots__:rw"
working_dir: /app
user: ubuntu
depends_on:
storybook:
condition: service_healthy
command: >
sh -c "npm run test:storybook -- --ci --url http://storybook:6006/"
test-storybook-update:
image: velo.gl-test-storybook
build: ./config/test-storybook
Expand All @@ -37,12 +39,13 @@ services:
condition: service_healthy
command: >
sh -c "npm run test:storybook -- --updateSnapshot --url http://storybook:6006/"
test-storybook-github:
image: velo.gl-test-storybook
build: ./config/test-storybook
environment: MAPTILER_API_KEY
volumes:
- ".:/app:rw"
#- "./__snapshots__:/app/__snapshots__:rw"
working_dir: /app
user: root
depends_on:
Expand Down

0 comments on commit 1f72f79

Please sign in to comment.