From 09003922ea0bc1519523763308a6a55b526789cb Mon Sep 17 00:00:00 2001 From: Richard Macklin Date: Sun, 26 Sep 2021 15:26:11 -0700 Subject: [PATCH] Add a step to check the `importmap json` command on CI This is a follow-up to fbd3feae748e2781372ac207a01cacfb964ad4bd which fixed a bug in the json command - now we're adding a minor check to CI to verify that the command prints a JSON object containing `imports`. --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e560bfb..3fab23a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,3 +25,8 @@ jobs: - name: Run tests run: | bundle exec rake + + - name: Ensure json command prints an importmap + run: | + cp lib/install/bin/importmap test/dummy/bin/importmap + test/dummy/bin/importmap json | jq -e .imports