From a85d96c841549003aca34db94018432ded3e5c27 Mon Sep 17 00:00:00 2001 From: Tom Fleet Date: Fri, 10 Jan 2025 08:45:51 +0000 Subject: [PATCH] Use my new Go CI workflow (#51) * Use my new Go CI workflow * Try this * What happens if I omit the object * Ooo what about this * Okay just pass it directly --- .github/ISSUE_TEMPLATE/bug.yml | 59 --------------- .github/ISSUE_TEMPLATE/feature.yml | 42 ----------- .github/ISSUE_TEMPLATE/question.yml | 29 -------- .github/PULL_REQUEST_TEMPLATE.md | 3 - .github/workflows/CI.yml | 107 ++-------------------------- 5 files changed, 5 insertions(+), 235 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug.yml delete mode 100644 .github/ISSUE_TEMPLATE/feature.yml delete mode 100644 .github/ISSUE_TEMPLATE/question.yml delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml deleted file mode 100644 index 432b4c9..0000000 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: 🐞 Bug Report -description: File a bug/issue -title: "" -labels: - - bug - -body: - - type: checkboxes - attributes: - label: Is there an existing issue for this? - description: Please search to see if an issue already exists for the bug you encountered. - options: - - label: I have searched the existing issues - required: true - - - type: textarea - attributes: - label: Current Behavior - description: A concise description of what you're experiencing. - validations: - required: false - - - type: textarea - attributes: - label: Expected Behavior - description: A concise description of what you expected to happen. - validations: - required: false - - - type: textarea - attributes: - label: Steps To Reproduce - description: Steps to reproduce the behavior. - placeholder: | - 1. In this environment... - 2. With this config... - 3. Run '...' - 4. See error... - validations: - required: false - - - type: textarea - attributes: - label: Environment - description: | - Please describe your execution environment providing as much detail as possible - render: Markdown - validations: - required: false - - - type: textarea - attributes: - label: Anything else? - description: | - Links? References? Anything that will give us more context about the issue you are encountering! - - Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in. - validations: - required: false diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml deleted file mode 100644 index eddf02f..0000000 --- a/.github/ISSUE_TEMPLATE/feature.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: 🚀 Feature Request -description: Request a new feature or enhancement -title: "<title>" -labels: - - feature - -body: - - type: checkboxes - attributes: - label: Is there an existing issue for this? - description: Please search to see if an issue already exists for the feature you want. - options: - - label: I have searched the existing issues - required: true - - - type: textarea - attributes: - label: How would this feature be useful? - description: Describe any use cases this solves or frustrations it alleviates. - validations: - required: false - - - type: textarea - attributes: - label: Describe the solution you'd like - description: If you have an idea on how to do this, let us know here! - validations: - required: false - - - type: textarea - attributes: - label: Describe alternatives you've considered - description: If there's some workaround or alternative solutions, let us know here! - validations: - required: false - - - type: textarea - attributes: - label: Anything else? - description: Any other relevant information or background. - validations: - required: false diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.yml deleted file mode 100644 index 6fb83c1..0000000 --- a/.github/ISSUE_TEMPLATE/question.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: ❓ Question -description: Ask something about the project -title: "<title>" -labels: - - question - -body: - - type: checkboxes - attributes: - label: Is there an existing issue for this? - description: Please search to see if an issue already exists for the question you want to ask. - options: - - label: I have searched the existing issues - required: true - - - type: textarea - attributes: - label: Description - description: Ask your question here. - placeholder: How can I...? Is it possible to...? - validations: - required: false - - - type: textarea - attributes: - label: Anything else? - description: Any other relevant information or background. - validations: - required: false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 87a1742..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,3 +0,0 @@ -## Summary - -<!-- Describe your changes in detail here, if it closes an open issue, include "Closes #<issue>" --> diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d76737b..f863a3e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -13,107 +13,10 @@ concurrency: permissions: {} jobs: - test: - name: Test - runs-on: ${{ matrix.os }} + ci: + name: CI permissions: contents: read - strategy: - matrix: - os: - - ubuntu-latest - - macos-latest - - windows-latest - - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - - name: Run Tests - run: go test -race ./... - env: - NO_COLOR: true - - cov: - name: CodeCov - runs-on: ubuntu-latest - permissions: - contents: read - - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - - name: Run Tests - run: go test -race -cover -covermode=atomic -coverprofile=./coverage.out ./... - env: - NO_COLOR: true - - - name: Coverage - uses: codecov/codecov-action@v5 - with: - files: ./coverage.out - - lint: - name: Lint - runs-on: ubuntu-latest - permissions: - contents: read - - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - - name: Run Linting - uses: golangci/golangci-lint-action@v6 - with: - version: latest - - vulncheck: - name: Vulncheck - runs-on: ubuntu-latest - permissions: - contents: read - - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - - name: Install govulncheck - run: go install golang.org/x/vuln/cmd/govulncheck@latest - - - name: Run govulncheck - run: govulncheck ./... - - typos: - name: Typos - runs-on: ubuntu-latest - permissions: - contents: read - - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - - name: Check for Typos - uses: crate-ci/typos@v1.29.1 + uses: FollowTheProcess/ci/.github/workflows/Go.yml@v1 + with: + env: '{"NO_COLOR": "true"}'