diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index be45dd5..a8988ba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,31 +7,19 @@ jobs: steps: - name: Build dataset run: | - ls wget https://www.w3.org/Graphics/SVG/Test/20110816/archives/W3C_SVG_11_TestSuite.tar.gz - ls mkdir -p svgs/W3C_SVG_11_TestSuite - ls tar -tf W3C_SVG_11_TestSuite.tar.gz | grep -E '^svg/.+\.svgz?$' > filter.txt - ls - tar -xf W3C_SVG_11_TestSuite.tar.gz -T filter.txt -C svgs/W3C_SVG_11_TestSuite - ls + tar -C svgs/W3C_SVG_11_TestSuite -xf W3C_SVG_11_TestSuite.tar.gz -T filter.txt wget https://download.kde.org/stable/frameworks/5.113/oxygen-icons-5.113.0.tar.xz - ls tar -tf oxygen-icons-5.113.0.tar.xz | grep -E '\.svgz?$' > filter.txt - ls - tar -xf oxygen-icons-5.113.0.tar.xz -T filter.txt -C svgs - ls + tar -C svgs -xf oxygen-icons-5.113.0.tar.xz -T filter.txt find svgs -name "*.svgz" -exec sh -c '7z e -so {} > $(echo {} | sed s/\.svgz$/\.svg/)' \; -delete - ls - - name: Package artifacts - run: | - mkdir /tmp/dist - tar czf /tmp/dist/svgo-test-suite.tar.gz svgs + tar czf svgo-test-suite.tar.gz svgs/* - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - path: /tmp/dist + path: svgo-test-suite.tar.gz deploy: needs: test runs-on: ubuntu-latest