-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (37 loc) · 975 Bytes
/
test.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
name: Go
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ['1.17.x']
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
path: src/github.com/ikawaha/waifu2x.go
- name: Build
run: go build -v ./...
working-directory: src/github.com/ikawaha/waifu2x.go
- name: Test
run: |
go test -v ./...
working-directory: src/github.com/ikawaha/waifu2x.go
- name: Benchmark
run: |
cd engine
go test -v -bench .
working-directory: src/github.com/ikawaha/waifu2x.go