diff --git a/buddy.yml b/buddy.yml index e0b5250..36e5a11 100644 --- a/buddy.yml +++ b/buddy.yml @@ -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: