Skip to content

Commit 5d4e51c

Browse files
committed
add a separate test workflow to distinguish from build breakage
1 parent c34ed47 commit 5d4e51c

3 files changed

Lines changed: 38 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build & test
1+
name: build
22

33
on:
44
push:
@@ -11,18 +11,17 @@ on:
1111
- cron: '0 6 * * 1' # weekly (every monday at 6 am UTC)
1212

1313
jobs:
14-
build-and-test:
14+
build:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-go@v5
1919
with:
20-
go-version: '>=1.19'
20+
go-version: '>=1.20'
2121
check-latest: true
2222
- name: install deps
2323
run: |
2424
go install golang.org/x/lint/golint@latest
2525
- run: go build -v ./...
26-
- run: go test -v ./...
2726
- run: go vet ./...
2827
- run: golint -set_exit_status ./...

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
schedule:
11+
- cron: '0 6 * * 1' # weekly (every monday at 6 am UTC)
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version: '>=1.20'
21+
check-latest: true
22+
- run: go test -v ./...

README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
# IMDb Go API
22

3-
[![Build Status][1]][2] [![Godoc][3]][4]
3+
[![godoc](https://godoc.org/github.com/StalkR/imdb?status.png)](https://godoc.org/github.com/StalkR/imdb)
4+
[![build status](https://github.com/StalkR/imdb/actions/workflows/build.yml/badge.svg)](https://github.com/StalkR/imdb/actions/workflows/build.yml)
5+
[![test status](https://github.com/StalkR/imdb/actions/workflows/test.yml/badge.svg)](https://github.com/StalkR/imdb/actions/workflows/test.yml)
46

5-
`go get github.com/StalkR/imdb`
7+
Unofficial IMDb API in Go.
68

7-
Bugs, comments, questions: create a [new issue][5].
9+
## Usage
810

9-
Also, IMDb has [alternative interfaces][6].
11+
See [example](https://github.com/StalkR/imdb/blob/master/examples/imdb.go).
1012

11-
[1]: https://github.com/StalkR/imdb/actions/workflows/build.yml/badge.svg
12-
[2]: https://github.com/StalkR/imdb/actions/workflows/build.yml
13-
[3]: https://godoc.org/github.com/StalkR/imdb?status.png
14-
[4]: https://godoc.org/github.com/StalkR/imdb
15-
[5]: https://github.com/StalkR/imdb/issues/new
16-
[6]: http://www.imdb.com/interfaces
13+
## Support
14+
15+
Bugs, comments, questions: create a [new issue](https://github.com/StalkR/imdb/issues/new).
16+
17+
## Alternatives
18+
19+
See IMDb [interfaces](https://www.imdb.com/interfaces).

0 commit comments

Comments
 (0)