Skip to content

Commit

Permalink
Merge pull request #3 from hirose31/build-arm64
Browse files Browse the repository at this point in the history
Forget to add workflows...
hirose31 authored Mar 24, 2021
2 parents 3fc2385 + 9e96bba commit c9b39e5
Showing 3 changed files with 94 additions and 9 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: release

on:
push:
tags:
- 'v*'

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Build
run: make cross

- name: Create release
uses: actions/create-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}

- name: Upload
run: make upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56 changes: 56 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: test

on:
push:
branches:
- '**'
pull_request: {}

jobs:
test:
name: Test ${{ matrix.go }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ['1.16', '1.15']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

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

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...

lint:
name: golint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.16'

- name: Lint
run: make lint

security:
name: gosec
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- uses: actions/checkout@v2

- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: './...'
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
<p align="center">
<!-- a href="https://github.com/hirose31/pinger/releases/latest"><img alt="Release" src="https://img.shields.io/github/release/hirose31/pinger.svg?style=flat-square"></a -->
<a href="/LICENSE.md"><img alt="Software License" src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"></a>
[![test](https://github.com/hirose31/pinger/actions/workflows/test.yml/badge.svg)](https://github.com/hirose31/pinger/actions/workflows/test.yml)
<!-- a href="https://travis-ci.org/hirose31/pinger"><img alt="Travis" src="https://img.shields.io/travis/hirose31/pinger.svg?style=flat-square"></a -->
<!-- a href="https://codecov.io/gh/hirose31/pinger"><img alt="Codecov branch" src="https://img.shields.io/codecov/c/github/hirose31/pinger/master.svg?style=flat-square"></a -->
<a href="https://goreportcard.com/report/github.com/hirose31/pinger"><img alt="Go Report Card" src="https://goreportcard.com/badge/github.com/hirose31/pinger?style=flat-square"></a>
<a href="http://godoc.org/github.com/hirose31/pinger"><img alt="Go Doc" src="https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square"></a>
</p>
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](/LICENSE)
[![test](https://github.com/hirose31/pinger/actions/workflows/test.yml/badge.svg)](https://github.com/hirose31/pinger/actions/workflows/test.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/hirose31/pinger?style=flat-square)](https://goreportcard.com/report/github.com/hirose31/pinger)
[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/hirose31/pinger)

# Pinger

0 comments on commit c9b39e5

Please sign in to comment.