Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Update workflows, add dependabot, and improve issue templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Alextopher committed Jan 19, 2024
1 parent d992657 commit 7492a8a
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 87 deletions.
14 changes: 10 additions & 4 deletions .github/ISSUE_TEMPLATE/download-or-update-issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ assignees: ''

---

**What project were you trying to use? (e.g. Blender, Arch Linux, Gentoo):**
**What project were you trying to use?:**

**What failed? (e.g. ISO download failed, `apt upgrade` failed, project is out of sync, Blender download failed):**
ie. Arch Linux, Blender, Gentoo

**When did you first experience the issue:**
**What failed?:**

**Please provide any other information:**
ie. ISO download failed, `apt upgrade` failed, project is out of sync

**Are you an official project maintainer?:**

Yes/No

Feel free to add any other details you think are relevant!
20 changes: 16 additions & 4 deletions .github/ISSUE_TEMPLATE/mirror-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@ assignees: ''

---

## Include full project name, a short name, and the home page url
## Include full project name

## Are you an official maintainer of this project? How would we become an "Official" mirror
ie. Arch Linux, Blender, Gentoo

## Is there a link to documentation on how to mirror the project
## A short name url friendly name

## (Optional) Around how much disk space is required to host the project
ie. archlinux, blender, gentoo

## The project's website

ie. <https://archlinux.org>, <https://blender.org>, <https://gentoo.org>

## Please provide some information on how to mirror the project

Either link to documentation <https://wiki.archlinux.org/title/DeveloperWiki:NewMirrors>

## Are you an official maintainer of this project?

Yes/No
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

63 changes: 55 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,72 @@
name: Go
name: checks

on:
push:
branches: [ master ]
branches: [ "main" ]
pull_request:
branches: [ master ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: '1.21'

- name: Build
run: go build -v ./...

typos:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4

- name: Check spelling of all files
uses: crate-ci/typos@master

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Check code formatting using gofmt
uses: Jerome1337/gofmt-action@v1.0.5

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Verify modfile
run: go mod verify

- name: Vet
run: go vet ./...

- name: Install golint
run: go install golang.org/x/lint/golint@latest

- name: Lint
run: golint -set_exit_status ./...

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Test
run: go test -v ./...
run: go test -v ./...
2 changes: 1 addition & 1 deletion tracking.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func Sendstatistics() {
}, t)
writer.WritePoint(p)

// To be safe we release the lock before logging because logging takes a seperate lock
// To be safe we release the lock before logging because logging takes a separate lock
statistics.RUnlock()

logging.Info("Sent statistics")
Expand Down

0 comments on commit 7492a8a

Please sign in to comment.