Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Savin committed Dec 8, 2021
1 parent 9edd7cf commit 41f1269
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .github/RELEASE-TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Release name

- First feature
- Second feature
27 changes: 6 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
on:
push:
branches: [main]
workflow_run:
workflows: [ "GolangCI-lint" ]
branches: [ main ]
types:
- completed
pull_request:
branches: [main]

Expand All @@ -11,38 +14,20 @@ defaults:
shell: bash

jobs:
lint:
name: Lint files
runs-on: 'ubuntu-latest'
steps:
- uses: actions/[email protected]
- uses: actions/setup-go@v2
with:
go-version: '1.17.3'
- name: golangci-lint
uses: golangci/[email protected]
with:
version: latest

build:
name: Build binary
runs-on: 'ubuntu-latest'
needs: lint
strategy:
matrix:
goosarch:
- 'darwin/amd64'
- 'darwin/arm64'
- 'linux/386'
- 'linux/amd64'
- 'linux/arm'
- 'linux/arm64'
steps:
- name: Checkout code
uses: actions/[email protected]
- uses: actions/setup-go@v2
with:
go-version: '1.17.3'
go-version: '1.17'

- name: Get OS and arch info
run: |
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
paths:
- "go.sum"
- "go.mod"
- "**.go"
- ".github/workflows/golangci-lint.yml"
- ".golangci.yml"
pull_request:
paths:
- "go.sum"
- "go.mod"
- "**.go"
- ".github/workflows/golangci-lint.yml"
- ".golangci.yml"

name: GolangCI-lint

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.42.0
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# go-monkill

[![Go Reference](https://pkg.go.dev/badge/github.com/jtprogru/go-monkill.svg)](https://pkg.go.dev/github.com/jtprogru/go-monkill)
[![GolangCI-lint](https://github.com/jtprogru/go-monkill/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/jtprogru/go-monkill/actions/workflows/golangci-lint.yml)
[![build](https://github.com/jtprogru/go-monkill/actions/workflows/build.yml/badge.svg)](https://github.com/jtprogru/go-monkill/actions/workflows/build.yml)
[![publish](https://github.com/jtprogru/go-monkill/actions/workflows/publish.yml/badge.svg)](https://github.com/jtprogru/go-monkill/actions/workflows/publish.yml)
[![GitHub stars](https://img.shields.io/github/stars/jtprogru/go-monkill.svg)](https://github.com/jtprogru/go-monkill/stargazers)
[![GitHub issues](https://img.shields.io/github/issues-raw/jtprogru/go-monkill)](https://github.com/jtprogru/go-monkill/issues)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/jtprogru/go-monkill)](https://github.com/jtprogru/go-monkill/releases/latest)
[![Go report](https://goreportcard.com/badge/github.com/jtprogru/go-monkill)](https://goreportcard.com/report/github.com/jtprogru/go-monkill)
![GitHub](https://img.shields.io/github/license/jtprogru/go-monkill)
![Linux](https://img.shields.io/badge/-Linux-grey?logo=linux)
[![GitHub](https://img.shields.io/github/license/jtprogru/go-monkill)](LICENSE)
[![Linux](https://img.shields.io/badge/-Linux-grey?logo=linux)](https://en.wikipedia.org/wiki/Linux)
[![Donate](https://img.shields.io/badge/-Donate-yellow?logo=paypal)](https://paypal.me/jtprogru)
[![LoC](https://tokei.rs/b1/github/jtprogru/go-monkill)](https://github.com/jtprogru/go-monkill)

A very simple utility that allows you to run the desired command or script as soon as a certain process with a known PID completes correctly or with an error.

Expand Down

0 comments on commit 41f1269

Please sign in to comment.