From 2b54d8b02fc4ffb365c139fbbdbfd733bd38aa60 Mon Sep 17 00:00:00 2001 From: rocketlaunchr-cto Date: Tue, 24 May 2022 11:51:53 +1000 Subject: [PATCH] - add github actions --- .github/audit.yml | 30 ++++++++++++++++++++++++++++++ LICENSE | 2 +- README.md | 12 +++++------- limit.go | 2 +- search.go | 2 +- 5 files changed, 38 insertions(+), 10 deletions(-) create mode 100644 .github/audit.yml diff --git a/.github/audit.yml b/.github/audit.yml new file mode 100644 index 0000000..974c2ba --- /dev/null +++ b/.github/audit.yml @@ -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 ./... \ No newline at end of file diff --git a/LICENSE b/LICENSE index 8b9c20f..80ada9d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ 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 of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 9f41114..697ddc9 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@

+

@@ -16,12 +17,8 @@ Quickly scrape Google Search Results. ## Example ```go -package main - -import ( - "fmt" - "github.com/rocketlaunchr/google-search" -) +import "fmt" +import "github.com/rocketlaunchr/google-search" func main() { 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 ------------ -- [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 - [dbq](https://github.com/rocketlaunchr/dbq) - Zero boilerplate database operations for Go - [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 - [react](https://github.com/rocketlaunchr/react) - Build front end applications using Go - [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 \ No newline at end of file diff --git a/limit.go b/limit.go index 9dce5eb..7bda3af 100644 --- a/limit.go +++ b/limit.go @@ -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 diff --git a/search.go b/search.go index 985234a..f0ffcbb 100644 --- a/search.go +++ b/search.go @@ -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