Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
abahmed committed Nov 22, 2021
1 parent 8b1f6ed commit 663c410
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 37 deletions.
31 changes: 4 additions & 27 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,18 @@ on:
branches:
- main

env:
GO111MODULE: on
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

jobs:
check:
strategy:
matrix:
go-version: [1.17.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go ${{ matrix.go-version }}
uses: actions/setup-go@v1
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Set GOPATH and PATH
# temporary fix
# see https://github.com/actions/setup-go/issues/14
run: |
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
shell: bash
go-version: '1.17'

- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}

- name: Install dependencies
run: go get -v golang.org/x/lint/golint

- name: Build
run: go build

- name: Lint
run: golint -set_exit_status ./...
run: go build
7 changes: 1 addition & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Publish

on:
Expand All @@ -25,7 +20,7 @@ jobs:

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v3
with:
images: abahmed1/kwatch

Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<p align="center">
<h2 align="center">kwatch</h2>
<p align="left">
<h1>kwatch</h1>
<br />
<a href="https://godoc.org/github.com/abahmed/kwatch">
<img src="https://godoc.org/github.com/abahmed/kwatch?status.png" />
</a>
<img src="https://github.com/abahmed/kwatch/workflows/Check/badge.svg?branch=main" />
<a href="https://github.com/abahmed/kwatch/actions/workflows/check.yaml">
<img src="https://github.com/abahmed/kwatch/workflows/Check/badge.svg?branch=main" />
</a>
<a href="https://goreportcard.com/report/github.com/abahmed/kwatch">
<img src="https://goreportcard.com/badge/github.com/abahmed/kwatch" />
</a>
Expand All @@ -23,7 +25,7 @@
## Screenshots

<p align="center">
<img src="https://raw.githubusercontent.com/abahmed/kwatch/main/assets/demo.png" width="75%"/>
<img src="https://raw.githubusercontent.com/abahmed/kwatch/main/assets/demo.png" width="60%"/>
</p>

## Getting Started
Expand Down

0 comments on commit 663c410

Please sign in to comment.