Skip to content

Commit c8e4d01

Browse files
authored
Merge pull request #73 from Teamwork/fix-generics
V2: Generics, Go 1.20 and associated tweaks
2 parents 637fa45 + 8526dee commit c8e4d01

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+437
-2151
lines changed

.codecov.yml

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

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build
2+
on:
3+
[push, pull_request]
4+
5+
jobs:
6+
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: Lint
13+
uses: golangci/golangci-lint-action@v3
14+
with:
15+
only-new-issues: true
16+
17+
test:
18+
runs-on: ubuntu-latest
19+
env:
20+
GORACE: history_size=4
21+
steps:
22+
- uses: actions/checkout@v3
23+
24+
- name: Set up Go
25+
uses: actions/setup-go@v4
26+
with:
27+
go-version: '1.20'
28+
29+
- name: Test
30+
run: |
31+
go test -v -coverprofile=full_coverage -race -count=1 ./...
32+
echo 'mode: atomic' > full.coverage
33+
awk 'FNR>1' *_coverage >> full.coverage
34+
35+
- name: Install goveralls
36+
if: success()
37+
run: go mod vendor && go install ./vendor/github.com/mattn/goveralls
38+
39+
- name: Upload
40+
if: success()
41+
env:
42+
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
run: goveralls -coverprofile=full.coverage -service=github

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/vendor
22
/coverage.txt
33
.DS_Store
4+
full.coverage
5+
full_coverage

.golangci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ linters:
66
disable-all: true
77
enable:
88
- govet
9-
- golint
10-
- varcheck
11-
- structcheck
9+
- revive
10+
- unused
1211
- errcheck
1312
- staticcheck
1413
- ineffassign

.travis.yml

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

aesutil/aesutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Package aesutil provides a set of functions for 2-way encryption and hashing.
2-
package aesutil // import "github.com/teamwork/utils/aesutil"
2+
package aesutil // import "github.com/teamwork/utils/v2/aesutil"
33

44
import (
55
"crypto/aes"

0 commit comments

Comments
 (0)