From 6b6dbfc5b735097c06d4d35cec48a4430588a1f9 Mon Sep 17 00:00:00 2001 From: xxyzz Date: Sun, 1 Aug 2021 14:31:10 +0800 Subject: [PATCH] use bash on Windows go to hell powershell --- .github/workflows/tests.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 040c8f2..349ccfe 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -98,20 +98,25 @@ jobs: test-windows: name: test-windows runs-on: windows-latest + defaults: + run: + shell: bash steps: - name: Checkout code uses: actions/checkout@v2 - name: Install calibre and wget - run: choco install calibre wget + run: | + choco install calibre wget + echo "/C/Program Files/Calibre2" >> $GITHUB_PATH - name: Download 1984 ebook run: wget https://www.planetebook.com/free-ebooks/1984.mobi - name: Add 1984 to library run: | - mkdir "~/Calibre Library" - calibredb add 1984.mobi --with-library "~/Calibre Library" + mkdir ~/Calibre\ Library + calibredb add 1984.mobi --with-library ~/Calibre\ Library rm 1984.mobi - name: Build plugin @@ -134,4 +139,4 @@ jobs: - name: Run test run: | cd tests - calibre-debug test.py \ No newline at end of file + calibre-debug test.py