Skip to content

Commit

Permalink
Use my new Go CI workflow (#51)
Browse files Browse the repository at this point in the history
* Use my new Go CI workflow

* Try this

* What happens if I omit the object

* Ooo what about this

* Okay just pass it directly
  • Loading branch information
FollowTheProcess authored Jan 10, 2025
1 parent d8d294f commit a85d96c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 235 deletions.
59 changes: 0 additions & 59 deletions .github/ISSUE_TEMPLATE/bug.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/ISSUE_TEMPLATE/feature.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/question.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

107 changes: 5 additions & 102 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}'

0 comments on commit a85d96c

Please sign in to comment.