Skip to content

Commit

Permalink
ci: regenerate project layout with new features
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianpaquier committed Mar 29, 2024
1 parent bd4003b commit 9bc2931
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 7 deletions.
10 changes: 9 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# Code generated by craft; DO NOT EDIT.

coverage:
precision: 0
precision: 2
round: down
range: 85...100

status:
project:
default:
threshold: 2.5%
patch:
default:
threshold: 2.5%

ignore:
- "cmd"
- "examples"
Expand Down
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@

version: 2
updates:

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: wednesday
time: "12:00"
timezone: Etc/UTC
groups:
all:
update-types:
- minor
- patch
commit-message:
include: scope
prefix: chore
Expand All @@ -25,13 +31,19 @@ updates:
- kilianpaquier
reviewers:
- kilianpaquier

- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
day: wednesday
time: "12:00"
timezone: Etc/UTC
groups:
all:
update-types:
- minor
- patch
commit-message:
include: scope
prefix: chore
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
env_vars: OS
fail_ci_if_error: true
file: reports/go-coverage.native.out
flags: ${{ matrix.os }}
slug: ${{ github.repository }}
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- id: sha
run: echo "sha=$(echo "$REF_NAME" | sha256sum | cut -c -8)" >> $GITHUB_OUTPUT
env:
REF_NAME: ${{ github.ref_name }}
run: echo "sha=$(echo "$GITHUB_REF_NAME" | sha256sum | cut -c -8)" >> $GITHUB_OUTPUT
- id: semantic_release
uses: cycjimmy/semantic-release-action@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ linters-settings:
- name: unexported-return
- name: unhandled-error
arguments:
- bytes.Buffer.Write.*
- fmt.Printf
- fmt.Println
- name: unnecessary-stmt
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
<!-- This file is safe to edit. Once it exists it will not be overwritten. -->

# pooling <!-- omit in toc -->

<p align="center">
<img alt="GitHub Actions" src="https://img.shields.io/github/actions/workflow/status/kilianpaquier/pooling/integration.yml?branch=main&style=for-the-badge">
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/kilianpaquier/pooling?include_prereleases&sort=semver&style=for-the-badge">
<img alt="GitHub Issues" src="https://img.shields.io/github/issues-raw/kilianpaquier/pooling?style=for-the-badge">
<img alt="GitHub License" src="https://img.shields.io/github/license/kilianpaquier/pooling?style=for-the-badge">
<img alt="Coverage" src="https://img.shields.io/codecov/c/github/kilianpaquier/pooling/main?style=for-the-badge">
<img alt="Go Version" src="https://img.shields.io/github/go-mod/go-version/kilianpaquier/pooling/main?style=for-the-badge&label=Go+Version">
<img alt="Go Report Card" src="https://goreportcard.com/badge/github.com/kilianpaquier/pooling?style=for-the-badge">
</p>

---

- [How to use ?](#how-to-use-)
- [Features](#features)

Expand Down
6 changes: 3 additions & 3 deletions scripts/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ lint-fix: reports
@ARGS="--fix" make -s lint

.PHONY: test
test: lint
test:
@go test ./... -count 1

.PHONY: test-race
test-race: lint
test-race:
@go test ./... -race

.PHONY: test-cover
test-cover: lint reports
test-cover: reports
@go test ./... -coverpkg="./..." -covermode="count" -coverprofile="reports/go-coverage.native.out"

0 comments on commit 9bc2931

Please sign in to comment.