Skip to content

Commit

Permalink
Update README and workflow config for zhihu
Browse files Browse the repository at this point in the history
  • Loading branch information
iawia002 committed Mar 27, 2023
1 parent 59b79ee commit 6465ab9
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 39 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/stream_zhihu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: zhihu

on:
push:
paths:
- "extractors/zhihu/*.go"
- ".github/workflows/stream_zhihu.yml"
pull_request:
paths:
- "extractors/zhihu/*.go"
- ".github/workflows/stream_zhihu.yml"
schedule:
# run ci weekly
- cron: "0 0 * * 0"

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ["1.20"]
os: [ubuntu-latest]
name: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Test
run: go test -timeout 5m -race -coverpkg=./... -coverprofile=coverage.txt github.com/iawia002/lux/extractors/zhihu
Loading

0 comments on commit 6465ab9

Please sign in to comment.