Skip to content

Commit

Permalink
use bash on Windows
Browse files Browse the repository at this point in the history
go to hell powershell
  • Loading branch information
xxyzz committed Aug 1, 2021
1 parent 7200077 commit 6b6dbfc
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -134,4 +139,4 @@ jobs:
- name: Run test
run: |
cd tests
calibre-debug test.py
calibre-debug test.py

0 comments on commit 6b6dbfc

Please sign in to comment.