From e265a6f83f5a8633c47ad776f3d5ff1927258dcf Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 6 Sep 2021 15:28:51 +0300 Subject: [PATCH] add github stuff Signed-off-by: Vasiliy Tolstov --- dependabot.yml => .github/dependabot.yml | 0 .../workflows}/codeql-analysis.yml | 0 ISSUE_TEMPLATE/bug_report.md | 24 ---------- .../feature-request---enhancement.md | 17 ------- ISSUE_TEMPLATE/question.md | 14 ------ PULL_REQUEST_TEMPLATE.md | 9 ---- workflows/build.yml | 46 ------------------- workflows/pr.yml | 46 ------------------- 8 files changed, 156 deletions(-) rename dependabot.yml => .github/dependabot.yml (100%) rename {workflows => .github/workflows}/codeql-analysis.yml (100%) delete mode 100644 ISSUE_TEMPLATE/bug_report.md delete mode 100644 ISSUE_TEMPLATE/feature-request---enhancement.md delete mode 100644 ISSUE_TEMPLATE/question.md delete mode 100644 PULL_REQUEST_TEMPLATE.md delete mode 100644 workflows/build.yml delete mode 100644 workflows/pr.yml diff --git a/dependabot.yml b/.github/dependabot.yml similarity index 100% rename from dependabot.yml rename to .github/dependabot.yml diff --git a/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml similarity index 100% rename from workflows/codeql-analysis.yml rename to .github/workflows/codeql-analysis.yml diff --git a/ISSUE_TEMPLATE/bug_report.md b/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 1899438..0000000 --- a/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -name: Bug report -about: For reporting bugs in go-micro -title: "[BUG]" -labels: '' -assignees: '' - ---- - -**Describe the bug** - -1. What are you trying to do? -2. What did you expect to happen? -3. What happens instead? - -**How to reproduce the bug:** - -If possible, please include a minimal code snippet here. - -**Environment:** -Go Version: please paste `go version` output here -``` -please paste `go env` output here -``` diff --git a/ISSUE_TEMPLATE/feature-request---enhancement.md b/ISSUE_TEMPLATE/feature-request---enhancement.md deleted file mode 100644 index 459817f..0000000 --- a/ISSUE_TEMPLATE/feature-request---enhancement.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: Feature request / Enhancement -about: If you have a need not served by go-micro -title: "[FEATURE]" -labels: '' -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/ISSUE_TEMPLATE/question.md b/ISSUE_TEMPLATE/question.md deleted file mode 100644 index 1daf48b..0000000 --- a/ISSUE_TEMPLATE/question.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: Question -about: Ask a question about go-micro -title: '' -labels: '' -assignees: '' - ---- - -Before asking, please check if your question has already been answered: - -1. Check the documentation - https://micro.mu/docs/ -2. Check the examples and plugins - https://github.com/micro/examples & https://github.com/micro/go-plugins -3. Search existing issues diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index cba3cbc..0000000 --- a/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,9 +0,0 @@ -## Pull Request template -Please, go through these steps before clicking submit on this PR. - -1. Give a descriptive title to your PR. -2. Provide a description of your changes. -3. Make sure you have some relevant tests. -4. Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if applicable). - -**PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING** diff --git a/workflows/build.yml b/workflows/build.yml deleted file mode 100644 index eb19b68..0000000 --- a/workflows/build.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: build -on: - push: - branches: - - master -jobs: - test: - name: test - runs-on: ubuntu-latest - steps: - - name: setup - uses: actions/setup-go@v2 - with: - go-version: 1.16 - - name: checkout - uses: actions/checkout@v2 - - name: cache - uses: actions/cache@v2 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: ${{ runner.os }}-go- - - name: deps - run: go get -v -t -d ./... - - name: test - env: - INTEGRATION_TESTS: yes - run: go test -mod readonly -v ./... - lint: - name: lint - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v2 - - name: lint - uses: golangci/golangci-lint-action@v2 - continue-on-error: true - with: - # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.30 - # Optional: working directory, useful for monorepos - # working-directory: somedir - # Optional: golangci-lint command line arguments. - # args: --issues-exit-code=0 - # Optional: show only new issues if it's a pull request. The default value is `false`. - # only-new-issues: true diff --git a/workflows/pr.yml b/workflows/pr.yml deleted file mode 100644 index 545baf2..0000000 --- a/workflows/pr.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: prbuild -on: - pull_request: - branches: - - master -jobs: - test: - name: test - runs-on: ubuntu-latest - steps: - - name: setup - uses: actions/setup-go@v2 - with: - go-version: 1.16 - - name: checkout - uses: actions/checkout@v2 - - name: cache - uses: actions/cache@v2 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: ${{ runner.os }}-go- - - name: deps - run: go get -v -t -d ./... - - name: test - env: - INTEGRATION_TESTS: yes - run: go test -mod readonly -v ./... - lint: - name: lint - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v2 - - name: lint - uses: golangci/golangci-lint-action@v2 - continue-on-error: true - with: - # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.30 - # Optional: working directory, useful for monorepos - # working-directory: somedir - # Optional: golangci-lint command line arguments. - # args: --issues-exit-code=0 - # Optional: show only new issues if it's a pull request. The default value is `false`. - # only-new-issues: true