- add github actions

This commit is contained in:
rocketlaunchr-cto 2022-05-24 11:51:53 +10:00
parent 393cf6346e
commit 2b54d8b02f
5 changed files with 38 additions and 10 deletions

30
.github/audit.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Audit
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '55 * * * *'
jobs:
audit:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.12
- name: Verify dependencies
run: go mod verify
- name: Build
run: go build -v ./...
- name: Run tests
run: go test -race -vet=off ./...

View File

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2020 PJ Engineering and Business Solutions Pty. Ltd. Copyright (c) 2020-22 PJ Engineering and Business Solutions Pty. Ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -5,6 +5,7 @@
<p align="right"> <p align="right">
<a href="http://godoc.org/github.com/rocketlaunchr/google-search"><img src="http://godoc.org/github.com/rocketlaunchr/google-search?status.svg" /></a> <a href="http://godoc.org/github.com/rocketlaunchr/google-search"><img src="http://godoc.org/github.com/rocketlaunchr/google-search?status.svg" /></a>
<a href="https://goreportcard.com/report/github.com/rocketlaunchr/google-search"><img src="https://goreportcard.com/badge/github.com/rocketlaunchr/google-search" /></a> <a href="https://goreportcard.com/report/github.com/rocketlaunchr/google-search"><img src="https://goreportcard.com/badge/github.com/rocketlaunchr/google-search" /></a>
<a href="https://github.com/rocketlaunchr/google-search/actions"><img src="https://github.com/rocketlaunchr/google-search/actions/workflows/audit.yml/badge.svg" /></a>
</p> </p>
<p align="center"> <p align="center">
@ -16,12 +17,8 @@ Quickly scrape Google Search Results.
## Example ## Example
```go ```go
package main import "fmt"
import "github.com/rocketlaunchr/google-search"
import (
"fmt"
"github.com/rocketlaunchr/google-search"
)
func main() { func main() {
fmt.Println(googlesearch.Search(nil, "cars for sale in Toronto, Canada")) fmt.Println(googlesearch.Search(nil, "cars for sale in Toronto, Canada"))
@ -100,7 +97,7 @@ Special thanks to [Edmund Martin](https://edmundmartin.com/scraping-google-with-
Other useful packages Other useful packages
------------ ------------
- [awesome-svelte](https://github.com/rocketlaunchr/awesome-svelte) - Resources for killing react - [awesome-svelte](https://github.com/rocketlaunchr/awesome-svelte) - Resources for killing react.js
- [dataframe-go](https://github.com/rocketlaunchr/dataframe-go) - Statistics and data manipulation - [dataframe-go](https://github.com/rocketlaunchr/dataframe-go) - Statistics and data manipulation
- [dbq](https://github.com/rocketlaunchr/dbq) - Zero boilerplate database operations for Go - [dbq](https://github.com/rocketlaunchr/dbq) - Zero boilerplate database operations for Go
- [electron-alert](https://github.com/rocketlaunchr/electron-alert) - SweetAlert2 for Electron Applications - [electron-alert](https://github.com/rocketlaunchr/electron-alert) - SweetAlert2 for Electron Applications
@ -108,4 +105,5 @@ Other useful packages
- [mysql-go](https://github.com/rocketlaunchr/mysql-go) - Properly cancel slow MySQL queries - [mysql-go](https://github.com/rocketlaunchr/mysql-go) - Properly cancel slow MySQL queries
- [react](https://github.com/rocketlaunchr/react) - Build front end applications using Go - [react](https://github.com/rocketlaunchr/react) - Build front end applications using Go
- [remember-go](https://github.com/rocketlaunchr/remember-go) - Cache slow database queries - [remember-go](https://github.com/rocketlaunchr/remember-go) - Cache slow database queries
- [showerglass](https://github.com/rocketlaunchr/showerglass) - A soothing face filter for privacy
- [testing-go](https://github.com/rocketlaunchr/testing-go) - Testing framework for unit testing - [testing-go](https://github.com/rocketlaunchr/testing-go) - Testing framework for unit testing

View File

@ -1,4 +1,4 @@
// Copyright 2020-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved. // Copyright 2020-22 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
package googlesearch package googlesearch

View File

@ -1,4 +1,4 @@
// Copyright 2020-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved. // Copyright 2020-22 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
package googlesearch package googlesearch