Skip to content

Commit

Permalink
Add checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Umut Isik committed Mar 13, 2020
1 parent 8f33b94 commit 5167327
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test & Build
on: [push, pull_request]
jobs:

test-build:
name: Test & Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Build
run: go build ./...
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build And Release

on:
push:
tags:
- 'v*.*.*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13.x
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/wospm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: WOSPM Checker
on: [push]

jobs:
wospm_checker:
runs-on: ubuntu-latest
name: WOSPM Checker
steps:
- name: Checkout
uses: actions/checkout@v2
- name: WOSPM Checker Github Action
uses: WOSPM/wospm-checker-github-action@v1
- name: Upload HTML Report When Success
uses: actions/upload-artifact@v1
with:
name: HTML Report
path: wospm.html
- name: Upload HTML Report When Failed
uses: actions/upload-artifact@v1
if: failure()
with:
name: HTML Report
path: wospm.html
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,33 @@
go build
```

## How To Install

### Basic

Follow the steps;

> git clone [email protected]:umutphp/hacker-laws-cli.git
> cd hacker-laws-cli
> go run main.go
### Build as binary

Follow the steps;

> git clone [email protected]:umutphp/hacker-laws-cli.git
> cd hacker-laws-cli
> sudo go build -o /usr/local/bin/hacker-laws-cli .
> hacker-laws-cli list
### Download and use official binary

Visit the latest release page and download the binary correspondingly.

> wget -O /usr/local/bin/hacker-laws-cli https://latest-binary-url
> hacker-laws-cli

## How To Use

The build will create an executable with name *hacker-laws-cli*.
Expand Down

0 comments on commit 5167327

Please sign in to comment.