Skip to content

Commit

Permalink
Update screenshot-testing.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yceballost committed Aug 19, 2023
1 parent aa08734 commit 7dbc5d6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/screenshot-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,41 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Generar archivo de configuración
run: |
echo 'module.exports = {' > .figmaexportrc.js
echo ' commands: [' >> .figmaexportrc.js
echo ' [' >> .figmaexportrc.js
echo ' "components",' >> .figmaexportrc.js
echo ' {' >> .figmaexportrc.js
echo ' fileId: "WCkDDzlXE16R6yXaljxddj",' >> .figmaexportrc.js
echo ' transformers: [' >> .figmaexportrc.js
echo ' require("@figma-export/transform-svg-with-svgo")({' >> .figmaexportrc.js
echo ' plugins: [' >> .figmaexportrc.js
echo ' {' >> .figmaexportrc.js
echo ' name: "preset-default",' >> .figmaexportrc.js
echo ' params: {' >> .figmaexportrc.js
echo ' overrides: {' >> .figmaexportrc.js
echo ' removeViewBox: false,' >> .figmaexportrc.js
echo ' },' >> .figmaexportrc.js
echo ' },' >> .figmaexportrc.js
echo ' },' >> .figmaexportrc.js
echo ' {' >> .figmaexportrc.js
echo ' name: "removeDimensions",' >> .figmaexportrc.js
echo ' active: true,' >> .figmaexportrc.js
echo ' },' >> .figmaexportrc.js
echo ' ],' >> .figmaexportrc.js
echo ' }),' >> .figmaexportrc.js
echo ' ],' >> .figmaexportrc.js
echo ' outputters: [' >> .figmaexportrc.js
echo ' require("@figma-export/output-components-as-svg")({' >> .figmaexportrc.js
echo ' output: "./acceptance-test/",' >> .figmaexportrc.js
echo ' }),' >> .figmaexportrc.js
echo ' ],' >> .figmaexportrc.js
echo ' },' >> .figmaexportrc.js
echo ' ],' >> .figmaexportrc.js
echo '};' >> .figmaexportrc.js
- name: Screenshot testing!
run: |
npm install --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
Expand Down

0 comments on commit 7dbc5d6

Please sign in to comment.