Skip to content

Commit

Permalink
chore: improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Mar 24, 2023
1 parent 0bc9b0c commit f4ec5de
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 147 deletions.
82 changes: 0 additions & 82 deletions .github/ISSUE_TEMPLATE/bug-report.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/feature-request.yml

This file was deleted.

57 changes: 10 additions & 47 deletions .github/workflows/go-ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: Go CI

name: go-header CI
on:
workflow_call:

env:
GO_VERSION: 1.19

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

push:
tags:
- v*
branches:
- main
pull_request:
jobs:
lint:
name: Lint
Expand All @@ -20,7 +16,7 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
go-version: 1.20

- name: golangci-lint
uses: golangci/[email protected]
Expand All @@ -36,46 +32,13 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
go-version: 1.20

- run: go mod tidy

- name: check for diff
run: git diff --exit-code

test_coverage:
name: Unit Tests Coverage
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: set up go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}

- name: Test & Coverage
run: make cover
- uses: codecov/[email protected]
with:
file: ./coverage.txt

unit_race_test:
name: Run Unit Tests with Race Detector
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: set up go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
run: git diff --exit-code

- name: execute test run
run: make test-unit-race

build:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
with:
mode: minimum
count: 1
labels: "kind:fix, kind:misc, kind:break!, kind:refactor, kind:feat, kind:deps, kind:docs, kind:ci, kind:chore" # yamllint disable-line rule:line-length
labels: "kind:fix, kind:misc, kind:break!, kind:refactor, kind:feat, kind:deps, kind:docs, kind:ci, kind:chore, kind:perf" # yamllint disable-line rule:line-length

0 comments on commit f4ec5de

Please sign in to comment.