Skip to content

Commit

Permalink
Updated to v0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ArbitronNL committed Apr 4, 2023
1 parent 3d75fa0 commit acba61b
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Lint

on:
push:
tags:
branches:
pull_request:

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Caching
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: go-${{ hashFiles('**/go.sum') }}
restore-keys: go-

- name: Dependencies
run: go mod vendor

- name: Checksum
run: go mod verify

- name: Codestyle
uses: golangci/golangci-lint-action@v2
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest

# Optional: working directory, useful for monorepos
working-directory: ./

# Optional: golangci-lint command line arguments.
args: --timeout 200s --build-tags=musl

# optionally use a specific version of Go rather than the latest one
go_version: '1.18'

- name: Golang Vulncheck
uses: Templum/[email protected]
with:
go-version: 1.18
vulncheck-version: latest
fail-on-vuln: true
package: ./...
35 changes: 35 additions & 0 deletions .github/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Tests

on:
push:
tags:
branches:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Caching
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: go-${{ hashFiles('**/go.sum') }}
restore-keys: go-

- name: Dependencies
run: go mod vendor

- name: Checksum
run: go mod verify

- name: Test
run: go test -short -v -failfast ./...
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Ignore all temp files
*.tmp

# Folders
/coverage/
/reports/

### Go ###
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

### Go Patch ###
/vendor/
/Godeps/

0 comments on commit acba61b

Please sign in to comment.