Skip to content

Commit

Permalink
add github workflow (#6)
Browse files Browse the repository at this point in the history
* add github workflow
* add github status badge
  • Loading branch information
sergkondr authored Aug 1, 2024
1 parent 81f56a1 commit a6c47a9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: [ "master" ]
tags: [ "*" ]
pull_request:
branches: [ "master" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

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

- name: Test
run: go test -v ./...
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![License: MIT](https://img.shields.io/badge/License-MIT%202.0-blue.svg)](https://github.com/sergkondr/docker-ps/blob/main/LICENSE)
[![GitHub release](https://img.shields.io/github/release/sergkondr/docker-ps.svg)](https://github.com/sergkondr/docker-ps/releases/latest)
[![Go Report Card](https://goreportcard.com/badge/github.com/sergkondr/docker-ps)](https://goreportcard.com/report/github.com/sergkondr/docker-ps)
[![Go](https://github.com/sergkondr/docker-ps/actions/workflows/go.yml/badge.svg)](https://github.com/sergkondr/docker-ps/actions/workflows/go.yml)

### Purpose
As for me, `docker ps` is uninformative and inconvenient.
Expand Down

0 comments on commit a6c47a9

Please sign in to comment.