Skip to content

Commit

Permalink
Merge pull request #73 from Teamwork/fix-generics
Browse files Browse the repository at this point in the history
V2: Generics, Go 1.20 and associated tweaks
  • Loading branch information
ripexz authored Apr 26, 2023
2 parents 637fa45 + 8526dee commit c8e4d01
Show file tree
Hide file tree
Showing 51 changed files with 437 additions and 2,151 deletions.
8 changes: 0 additions & 8 deletions .codecov.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build
on:
[push, pull_request]

jobs:

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

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
only-new-issues: true

test:
runs-on: ubuntu-latest
env:
GORACE: history_size=4
steps:
- uses: actions/checkout@v3

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

- name: Test
run: |
go test -v -coverprofile=full_coverage -race -count=1 ./...
echo 'mode: atomic' > full.coverage
awk 'FNR>1' *_coverage >> full.coverage
- name: Install goveralls
if: success()
run: go mod vendor && go install ./vendor/github.com/mattn/goveralls

- name: Upload
if: success()
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=full.coverage -service=github
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/vendor
/coverage.txt
.DS_Store
full.coverage
full_coverage
5 changes: 2 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ linters:
disable-all: true
enable:
- govet
- golint
- varcheck
- structcheck
- revive
- unused
- errcheck
- staticcheck
- ineffassign
Expand Down
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

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

import (
"crypto/aes"
Expand Down
Loading

0 comments on commit c8e4d01

Please sign in to comment.