-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (38 loc) · 1.01 KB
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{matrix.config.os}}-latest
strategy:
matrix:
config:
- os: ubuntu
- os: windows
- os: macos
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Build
run: go build
- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: ${{matrix.config.os}}_binary
path: |
mdgo
mdgo.exe
- name: Install
run: go install
- name: Test packages
run: go test ./...
- name: Test manga
run: mdgo manga https://mangadex.org/title/37f5cce0-8070-4ada-96e5-fa24b1bd4ff9/kaguya-sama-wa-kokurasetai-tensai-tachi-no-renai-zunousen kaguya -p kaguya_chap_ -C="0,5" -a "cbz"
- name: Test chapter
run: mdgo chapter 7ff854cf-dc17-4fdd-99d4-bc8f5d623b60 -a "cbz" tmp/chapter