Skip to content

Commit

Permalink
Merge branch 'gocolly:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
SaladinoBelisario authored Dec 25, 2021
2 parents 35e51ed + 01e7c2b commit f4d10e2
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 18 deletions.
86 changes: 86 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
name: CI
on:
push:
branches:
- '**'

jobs:
test:
name: Test ${{matrix.go}}
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
max-parallel: 4
matrix:
go: [
"1.17",
"1.16",
"1.15",
"1.14",
"1.13",
"1.12",
"1.11"
]

steps:
- name: Checkout branch
uses: actions/checkout@v2

- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.go}}

- name: Test
run: |
go get -u golang.org/x/lint/golint
OUT="$(go get -a)"; test -z "$OUT" || (echo "$OUT" && return 1)
OUT="$(gofmt -l -d ./)"; test -z "$OUT" || (echo "$OUT" && return 1)
OUT="$(golint ./...)"; test -z "$OUT" || (echo "$OUT" && return 1)
go vet -v ./...
go test -race -v -coverprofile=coverage.txt -covermode=atomic ./
build:
name: Build ${{matrix.go}}
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
max-parallel: 4
matrix:
go: [
"1.17",
"1.16",
"1.15",
"1.14",
"1.13",
"1.12",
"1.11"
]

steps:
- name: Checkout branch
uses: actions/checkout@v2

- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.go}}

- name: Build
run: |
go get -u golang.org/x/lint/golint
OUT="$(go get -a)"; test -z "$OUT" || (echo "$OUT" && return 1)
OUT="$(gofmt -l -d ./)"; test -z "$OUT" || (echo "$OUT" && return 1)
OUT="$(golint ./...)"; test -z "$OUT" || (echo "$OUT" && return 1)
go build
codecov:
name: Codecov
runs-on: [ubuntu-latest]
needs:
- test
- build
steps:
- name: Run Codecov
run: bash <(curl -s https://codecov.io/bash)
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Colly provides a clean interface to write any kind of crawler/scraper/spider.
With Colly you can easily extract structured data from websites, which can be used for a wide range of applications, like data mining, data processing or archiving.

[![GoDoc](https://godoc.org/github.com/gocolly/colly?status.svg)](https://pkg.go.dev/github.com/gocolly/colly/v2)
[![Backers on Open Collective](https://opencollective.com/colly/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/colly/sponsors/badge.svg)](#sponsors) [![build status](https://img.shields.io/travis/gocolly/colly/master.svg?style=flat-square)](https://travis-ci.org/gocolly/colly)
[![Backers on Open Collective](https://opencollective.com/colly/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/colly/sponsors/badge.svg)](#sponsors) [![build status](https://github.com/gocolly/colly/actions/workflows/ci.yml/badge.svg)](https://github.com/gocolly/colly/actions/workflows/ci.yml)
[![report card](https://img.shields.io/badge/report%20card-a%2B-ff3333.svg?style=flat-square)](http://goreportcard.com/report/gocolly/colly)
[![view examples](https://img.shields.io/badge/learn%20by-examples-0077b3.svg?style=flat-square)](https://github.com/gocolly/colly/tree/master/_examples)
[![Code Coverage](https://img.shields.io/codecov/c/github/gocolly/colly/master.svg)](https://codecov.io/github/gocolly/colly?branch=master)
Expand Down

0 comments on commit f4d10e2

Please sign in to comment.