Skip to content

Update screenshot-testing.yml #10

Update screenshot-testing.yml

Update screenshot-testing.yml #10

name: Screenshot test
# push:
# paths:
# - ".github/workflows/figma-export.yml"
on:
push:
branches:
- visual-regression
# workflow_dispatch:
# inputs:
# brand:
# type: choice
# description: Library to export
# required: true
# default: "all"
# options:
# - all
# - telefonica
# - o2
# - blau
# - vivo
# draft:
# type: boolean
# default: true
# description: Draft PR
jobs:
generate-screenshots:
name: Acceptance tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Screenshot testing!
run: |
yarn add --save-dev @figma-export/cli @figma-export/output-styles-as-sass @figma-export/transform-svg-with-svgo @figma-export/output-components-as-svg @figma-export/output-styles-as-sass
yarn figma:export
- name: convert-svg-to-png
uses: joseaeltala/convert-svg-to-png/@master
with:
file: "README.md"
path: "acceptance-tests"
name: "converted-svg-files"
- name: Commit & Push
run: |
git config user.name "github-actions"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Screenshot tests"
git push origin visual-regression