Skip to content

Commit

Permalink
Added pipeline for storybook react native
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszWrobel591 committed Oct 31, 2024
1 parent 1f44e16 commit 6b79377
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions buddy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,44 @@
- " && service dbus start \\"
- " && rm -rf /var/lib/apt/lists/*"
shell: "BASH"
- pipeline: "Run tests SD9 STORYBOOK REACT NATIVE"
on: "CLICK"
refs:
- "refs/heads/main"
fail_on_prepare_env_warning: true
actions:
- action: "Install packages"
type: "BUILD"
docker_image_name: "library/node"
docker_image_tag: "20"
execute_commands:
- "cd storybook-react-native"
- "npm i"
- "non run build-storybook"
volume_mappings:
- "/:/buddy/visual-test-example-project"
shell: "BASH"
- action: "Run tests"
type: "BUILD"
docker_image_name: "library/node"
docker_image_tag: "20"
execute_commands:
- "cd storybook-react-native"
- "export NODE_TLS_REJECT_UNAUTHORIZED=0"
- "export SNAPSHOTS_SERVICE_URL=https://visual.sd9.com"
- "export SNAPSHOTS_BROWSER_PATH=/usr/bin/google-chrome-stable"
- "npm run test"
setup_commands:
- "apt-get update \\ "
- " && apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb wget gnupg \\"
- " && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/googlechrome-linux-keyring.gpg \\"
- " && sh -c 'echo \"deb [arch=amd64 signed-by=/usr/share/keyrings/googlechrome-linux-keyring.gpg] http://dl.google.com/linux/chrome/deb/ stable main\" >> /etc/apt/sources.list.d/google.list' \\"
- " && apt-get update \\"
- " && apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-khmeros fonts-kacst fonts-freefont-ttf libxss1 dbus dbus-x11 \\"
- " --no-install-recommends \\"
- " && service dbus start \\"
- " && rm -rf /var/lib/apt/lists/*"
shell: "BASH"
- pipeline: "Run tests SD9 dev"
on: "CLICK"
refs:
Expand Down

0 comments on commit 6b79377

Please # to comment.