-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from unidoc/update-unipdf-v3.32.0
Prepare v0.5.0 - Update to unipdf v3.32.0 - Add CI
- Loading branch information
Showing
10 changed files
with
121 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
lint: | ||
name: golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
- name: Get golangci-lint | ||
run: | | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.43.0 | ||
- name: Run golangci-lint | ||
run: | | ||
./bin/golangci-lint run --out-format=github-actions --issues-exit-code=1 | ||
build: | ||
name: Build Go ${{ matrix.go }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: [ '1.17', '1.16', '1.15', '1.14', '1.13' ] | ||
env: | ||
CGO_ENABLED: 0 | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: Get dependencies | ||
run: | | ||
go get -v -t -d ./... | ||
- name: go vet | ||
run: go vet ./... | ||
|
||
- name: Test | ||
run: go test -tags=test -count=1 ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
linters: | ||
enable-all: false | ||
enable: | ||
- exportloopref | ||
- staticcheck | ||
- megacheck | ||
- govet | ||
- gosimple | ||
- nakedret | ||
- typecheck | ||
- gosec | ||
- revive | ||
- unconvert | ||
- misspell | ||
disable: | ||
- ineffassign | ||
- errcheck | ||
- varcheck | ||
- deadcode | ||
- unused | ||
- structcheck | ||
- lll | ||
- gofmt | ||
- goconst | ||
- scopelint | ||
run: | ||
concurrency: 4 | ||
timeout: 3m | ||
# Keep exit code 0 until we fix all this, i.e. get the baseline set. | ||
issues-exit-code: 0 | ||
# Keep this false until we address all the non-test files and set baseline. | ||
tests: true | ||
|
||
skip-files: | ||
- ".*_test.go$" | ||
|
||
skip-dirs: | ||
- testdata | ||
|
||
issues: | ||
exclude-rules: | ||
# We don't control the ciphers as we are just implementing standards. | ||
- linters: | ||
- gosec | ||
text: "weak cryptographic primitive" | ||
|
||
# output configuration options | ||
output: | ||
format: colored-line-number | ||
print-issued-lines: true | ||
print-linter-name: true | ||
uniq-by-line: true | ||
path-prefix: "" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters