Skip to content

Commit

Permalink
ci: test as root on github
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfb committed Nov 2, 2024
1 parent 6ad9528 commit 0a197f2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ jobs:
run: npm ci

- name: Storybook visual tests
run: npm run docker:compose:test
run: npm run docker:compose:test:github

14 changes: 13 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,16 @@ 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
volumes:
- ".:/app:rw"
#- "./__snapshots__:/app/__snapshots__:rw"
working_dir: /app
user: root
depends_on:
storybook:
condition: service_healthy
command: >
sh -c "npm run test:storybook -- --ci --url http://storybook:6006/"
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"docker:storybook": "npm run docker -- npm run storybook -- --no-open",
"docker:compose:storybook": "docker-compose up --build storybook",
"docker:compose:test": "docker-compose up --build test-storybook",
"docker:compose:test:github": "docker-compose up --build test-storybook-github",
"docker:compose:test:update": "docker-compose up --build test-storybook-update",
"lint:typecheck": "tsc --project tsconfig.lint.json --noEmit",
"lint": "npm run lint:typecheck && eslint \"**\"",
Expand Down

0 comments on commit 0a197f2

Please sign in to comment.