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

Commit 7492a8a

Browse files
committed
Update workflows, add dependabot, and improve issue templates
1 parent d992657 commit 7492a8a

File tree

6 files changed

+93
-87
lines changed

6 files changed

+93
-87
lines changed

.github/ISSUE_TEMPLATE/download-or-update-issue.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ assignees: ''
77

88
---
99

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

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

14-
**When did you first experience the issue:**
14+
**What failed?:**
1515

16-
**Please provide any other information:**
16+
ie. ISO download failed, `apt upgrade` failed, project is out of sync
17+
18+
**Are you an official project maintainer?:**
19+
20+
Yes/No
21+
22+
Feel free to add any other details you think are relevant!

.github/ISSUE_TEMPLATE/mirror-request.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,22 @@ assignees: ''
77

88
---
99

10-
## Include full project name, a short name, and the home page url
10+
## Include full project name
1111

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

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

16-
## (Optional) Around how much disk space is required to host the project
16+
ie. archlinux, blender, gentoo
17+
18+
## The project's website
19+
20+
ie. <https://archlinux.org>, <https://blender.org>, <https://gentoo.org>
21+
22+
## Please provide some information on how to mirror the project
23+
24+
Either link to documentation <https://wiki.archlinux.org/title/DeveloperWiki:NewMirrors>
25+
26+
## Are you an official maintainer of this project?
27+
28+
Yes/No

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "gomod" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/go.yml

Lines changed: 55 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,72 @@
1-
name: Go
1+
name: checks
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ "main" ]
66
pull_request:
7-
branches: [ master ]
87

98
jobs:
10-
119
build:
1210
runs-on: ubuntu-latest
1311
steps:
14-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1513

1614
- name: Set up Go
17-
uses: actions/setup-go@v2
15+
uses: actions/setup-go@v4
1816
with:
19-
go-version: 1.18
17+
go-version: '1.21'
2018

2119
- name: Build
2220
run: go build -v ./...
2321

22+
typos:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout Actions Repository
26+
uses: actions/checkout@v4
27+
28+
- name: Check spelling of all files
29+
uses: crate-ci/typos@master
30+
31+
format:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- name: Check code formatting using gofmt
37+
uses: Jerome1337/[email protected]
38+
39+
lint:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
44+
- name: Set up Go
45+
uses: actions/setup-go@v4
46+
with:
47+
go-version: '1.21'
48+
49+
- name: Verify modfile
50+
run: go mod verify
51+
52+
- name: Vet
53+
run: go vet ./...
54+
55+
- name: Install golint
56+
run: go install golang.org/x/lint/golint@latest
57+
58+
- name: Lint
59+
run: golint -set_exit_status ./...
60+
61+
test:
62+
runs-on: ubuntu-latest
63+
steps:
64+
- uses: actions/checkout@v4
65+
66+
- name: Set up Go
67+
uses: actions/setup-go@v4
68+
with:
69+
go-version: '1.21'
70+
2471
- name: Test
25-
run: go test -v ./...
72+
run: go test -v ./...

tracking.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func Sendstatistics() {
282282
}, t)
283283
writer.WritePoint(p)
284284

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

288288
logging.Info("Sent statistics")

0 commit comments

Comments
 (0)