Skip to content

Commit

Permalink
Merge pull request #20 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 1.0.5
  • Loading branch information
andyone committed Jun 26, 2021
2 parents 9ceb821 + e303d5b commit 44665dd
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 24 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:

env:
SRC_DIR: src/github.com/${{ github.repository }}
GO111MODULE: auto

strategy:
matrix:
go: [ '1.14.x', '1.15.x' ]
go: [ '1.15.x', '1.16.x' ]

steps:
- name: Set up Go
Expand Down Expand Up @@ -75,17 +76,38 @@ jobs:

needs: Go

env:
SRC_DIR: src/github.com/${{ github.repository }}
GO111MODULE: auto

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

- name: Setup PATH
run: |
echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV"
echo "GOBIN=${{ github.workspace }}/bin" >> "$GITHUB_ENV"
echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
- name: Checkout
uses: actions/checkout@v2
with:
path: ${{env.SRC_DIR}}

- name: Install Aligo
working-directory: ${{env.SRC_DIR}}
run: |
wget https://apps.kaos.st/aligo/latest/linux/x86_64/aligo
chmod +x aligo
- name: Print Aligo version info
working-directory: ${{env.SRC_DIR}}
run: ./aligo --version

- name: Check Go structs alignment info
working-directory: ${{env.SRC_DIR}}
run: ./aligo check ./...
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
with:
fetch-depth: 2

- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/godoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: GoDoc

on:
create

jobs:
GoDoc:
name: Generate docs
runs-on: ubuntu-latest

steps:
- name: Trigger GoSumDB and PkgGoDev
uses: essentialkaos/pkgre-godoc-action@v1
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
################################################################################

# This Makefile generated by GoMakeGen 1.1.2 using next command:
# This Makefile generated by GoMakeGen 1.3.2 using next command:
# gomakegen .
#
# More info: https://kaos.sh/gomakegen

################################################################################

.DEFAULT_GOAL := help
.PHONY = fmt git-config deps-test test help
.PHONY = fmt vet git-config deps-test test help

################################################################################

git-config: ## Configure git redirects for stable import path services
git config --global http.https://pkg.re.followRedirects true

deps-test: git-config ## Download dependencies for tests
go get -d -v pkg.re/check.v1
go get -d -v pkg.re/essentialkaos/check.v1

test: ## Run tests
go test -covermode=count .

fmt: ## Format source code with gofmt
find . -name "*.go" -exec gofmt -s -w {} \;

vet: ## Runs go vet over sources
go vet -composites=false -printfuncs=LPrintf,TLPrintf,TPrintf,log.Debug,log.Info,log.Warn,log.Error,log.Critical,log.Print ./...

help: ## Show this info
@echo -e '\n\033[1mSupported targets:\033[0m\n'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-12s\033[0m %s\n", $$1, $$2}'
@echo -e ''
@echo -e '\033[90mGenerated by GoMakeGen 1.1.2\033[0m\n'
@echo -e '\033[90mGenerated by GoMakeGen 1.3.2\033[0m\n'

################################################################################
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<p align="center"><a href="#readme"><img src="https://gh.kaos.st/go-jar.svg"/></a></p>

<p align="center">
<a href="https://pkg.re/essentialkaos/go-jar.v1?docs"><img src="https://gh.kaos.st/godoc.svg" alt="PkgGoDev"></a>
<a href="https://goreportcard.com/report/github.com/essentialkaos/go-jar"><img src="https://goreportcard.com/badge/github.com/essentialkaos/go-jar"></a>
<a href="https://github.com/essentialkaos/go-jar/actions"><img src="https://github.com/essentialkaos/go-jar/workflows/CI/badge.svg" alt="GitHub Actions Status" /></a>
<a href="https://github.com/essentialkaos/go-jar/actions?query=workflow%3ACodeQL"><img src="https://github.com/essentialkaos/go-jar/workflows/CodeQL/badge.svg" /></a>
<a href="https://coveralls.io/github/essentialkaos/go-jar?branch=master"><img src="https://coveralls.io/repos/github/essentialkaos/go-jar/badge.svg?branch=master" alt="Coverage Status" /></a>
<a href="https://codebeat.co/projects/github-com-essentialkaos-go-jar-master"><img alt="codebeat badge" src="https://codebeat.co/badges/eafd2393-ab11-4d0e-bdc3-e51613c9e38a" /></a>
<a href="https://kaos.sh/g/go-jar.v1"><img src="https://gh.kaos.st/godoc.svg" alt="PkgGoDev" /></a>
<a href="https://kaos.sh/r/go-jar"><img src="https://kaos.sh/r/go-jar.svg" alt="GoReportCard" /></a>
<a href="https://kaos.sh/w/go-jar/ci"><img src="https://kaos.sh/w/go-jar/ci.svg" alt="GitHub Actions CI Status" /></a>
<a href="https://kaos.sh/w/go-jar/codeql"><img src="https://kaos.sh/w/go-jar/codeql.svg" alt="GitHub Actions CodeQL Status" /></a>
<a href="https://kaos.sh/c/go-jar"><img src="https://kaos.sh/c/go-jar.svg" alt="Coverage Status" /></a>
<a href="https://kaos.sh/b/go-jar"><img src="https://kaos.sh/b/eafd2393-ab11-4d0e-bdc3-e51613c9e38a.svg" alt="Codebeat badge" /></a>
<a href="#license"><img src="https://gh.kaos.st/apache2.svg"></a>
</p>

Expand All @@ -18,24 +18,24 @@

### Installation

Make sure you have a working Go 1.14+ workspace (_[instructions](https://golang.org/doc/install)_), then:
Make sure you have a working Go 1.15+ workspace (_[instructions](https://golang.org/doc/install)_), then:

```
go get pkg.re/essentialkaos/go-jar.v1
go get -d pkg.re/essentialkaos/go-jar.v1
```

For update to the latest stable release, do:

```
go get -u pkg.re/essentialkaos/go-jar.v1
go get -d -u pkg.re/essentialkaos/go-jar.v1
```

### Build Status

| Branch | Status |
|--------|--------|
| `master` | ![CI](https://github.com/essentialkaos/go-jar/workflows/CI/badge.svg?branch=master) |
| `develop` | ![CI](https://github.com/essentialkaos/go-jar/workflows/CI/badge.svg?branch=develop) |
|--------|----------|
| `master` | [![CI](https://kaos.sh/w/go-jar/ci.svg?branch=master)](https://kaos.sh/w/go-jar/ci?query=branch:master) |
| `develop` | [![CI](https://kaos.sh/w/go-jar/ci.svg?branch=develop)](https://kaos.sh/w/go-jar/ci?query=branch:develop) |

### License

Expand Down
2 changes: 1 addition & 1 deletion examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package jar

// ////////////////////////////////////////////////////////////////////////////////// //
// //
// Copyright (c) 2020 ESSENTIAL KAOS //
// Copyright (c) 2021 ESSENTIAL KAOS //
// Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> //
// //
// ////////////////////////////////////////////////////////////////////////////////// //
Expand Down
2 changes: 1 addition & 1 deletion jar.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package jar

// ////////////////////////////////////////////////////////////////////////////////// //
// //
// Copyright (c) 2020 ESSENTIAL KAOS //
// Copyright (c) 2021 ESSENTIAL KAOS //
// Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> //
// //
// ////////////////////////////////////////////////////////////////////////////////// //
Expand Down
4 changes: 2 additions & 2 deletions jar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ package jar

// ////////////////////////////////////////////////////////////////////////////////// //
// //
// Copyright (c) 2020 ESSENTIAL KAOS //
// Copyright (c) 2021 ESSENTIAL KAOS //
// Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> //
// //
// ////////////////////////////////////////////////////////////////////////////////// //

import (
"testing"

. "pkg.re/check.v1"
. "pkg.re/essentialkaos/check.v1"
)

// ////////////////////////////////////////////////////////////////////////////////// //
Expand Down

0 comments on commit 44665dd

Please sign in to comment.