Skip to content

Commit

Permalink
ci: improve ci
Browse files Browse the repository at this point in the history
  • Loading branch information
L2ncE committed Jan 12, 2023
1 parent 7d4cfd6 commit b562475
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 89 deletions.
36 changes: 0 additions & 36 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

6 changes: 0 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,3 @@ Please check your PR title with the below requirements:
<!--
Provide more detailed info for review. If it is a perf type PR, perf data is suggested to give.
-->

#### Which issue(s) this PR fixes:
<!--
Automatically closes linked issue when PR is merged.
Eg: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
7 changes: 2 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Tests
on: [ push, pull_request ]

jobs:
set-ut:
Lint:
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v3
Expand All @@ -17,7 +17,4 @@ jobs:
run: |
go vet -stdmethods=false $(go list ./...)
go install mvdan.cc/[email protected]
test -z "$(gofumpt -l -extra .)"
- name: Unit Test
run: go test -race -covermode=atomic -coverprofile=coverage.txt ./...
test -z "$(gofumpt -l -extra .)"
44 changes: 6 additions & 38 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,39 +1,7 @@
SHELL := /bin/bash
.PHONY: start
start:
docker-compose up -d

.PHONY: \
help \
coverage \
vet \
fmt


all: imports fmt vet errors build

help:
@echo 'Usage: make <OPTIONS> ... <TARGETS>'
@echo ''
@echo 'Available targets are:'
@echo ''
@echo ' help Show this help screen.'
@echo ' coverage Report code tests coverage.'
@echo ' vet Run go vet.'
@echo ' fmt Run go fmt.'
@echo ''
@echo 'Targets run by default are: lint, vet.'
@echo ''

deps:
go get golang.org/x/lint/golint

coverage:
go test $(go list ./... | grep -v examples) -coverprofile coverage.txt ./...

vet:
go vet ./...

fmt:
go install mvdan.cc/gofumpt@latest
gofumpt -l -w -extra .

version:
@go version
.PHONY: stop
stop:
docker-compose down
4 changes: 0 additions & 4 deletions _typos.toml

This file was deleted.

0 comments on commit b562475

Please sign in to comment.