diff --git a/.github/workflows/screenshot-testing.yml b/.github/workflows/screenshot-testing.yml index 8506428d94..f39f9e3c31 100644 --- a/.github/workflows/screenshot-testing.yml +++ b/.github/workflows/screenshot-testing.yml @@ -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