From 7dbc46668267565009bbc11f43beae9d6c3d73b1 Mon Sep 17 00:00:00 2001 From: Bob Date: Mon, 2 Aug 2021 17:34:11 -0400 Subject: [PATCH] more advanced --- .github/workflows/test.yml | 8 ++++++-- tests/{fixtures => }/test.stl | 0 2 files changed, 6 insertions(+), 2 deletions(-) rename tests/{fixtures => }/test.stl (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0763c01..16c1eb8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,8 +27,12 @@ jobs: # openscad -o "tests/test.stl" "tests/test.scad" - name: Install openscad run: sudo apt-get install openscad - - run: which openscad - - run: 'openscad -o "tests/test.stl" "tests/test.scad"' + - run: echo "rendering new fixtures..." + - run: mkdir tests/output/ + - run: 'openscad -o "tests/output/test.stl" "tests/test.scad"' + - run: echo "differencing new fixtures from old fixtures..." + - run: openscad /dev/null -D 'difference(){import("tests/test.stl");import("tests/otuput/test.stl");}' -o output.stl + - run: du -B=1 output.stl - run: | git config --global user.name 'KeyV2 GHA Bot' git config --global user.email 'keyv2-gha-bot@users.noreply.github.com' diff --git a/tests/fixtures/test.stl b/tests/test.stl similarity index 100% rename from tests/fixtures/test.stl rename to tests/test.stl