From 6667d1c36a3dff98ba3bfbdee7fc0744b15fb5bd Mon Sep 17 00:00:00 2001 From: Kaede Fujisaki Date: Sat, 31 Dec 2022 18:27:51 +0900 Subject: [PATCH] use apt on linux --- .github/workflows/unit-test.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index b6b9f6b..7749454 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -31,11 +31,16 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: Setup ImageMagick + - name: Setup ImageMagick (mac OS) run: | - # You need brew (mac OS or Linux) - eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + # You need brew on mac OS brew install imagemagick + if: matrix.os == 'macOS-latest' + + - name: Setup ImageMagick (Ubuntu) + run: | + apt-get install --no-install-recommends imagemagick + if: matrix.os == 'ubuntu-latest' - name: Prepare run: dev/install