forked from gabriel-vasile/mimetype
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github actions & readme: remove codecov badge (gabriel-vasile#533)
* remove codecov badge * upgrade deps
- Loading branch information
1 parent
ff4d3d0
commit 9bd6023
Showing
5 changed files
with
12 additions
and
31 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 |
---|---|---|
|
@@ -12,47 +12,32 @@ jobs: | |
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
- name: Install Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: "1.18.x" | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
go-version-file: 'go.mod' | ||
- name: Run linters | ||
uses: golangci/golangci-lint-action@v4.0.0 | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: "v1.45.2" | ||
version: "v1.58" | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
- name: Install Go | ||
if: success() | ||
uses: actions/[email protected] | ||
with: | ||
go-version: "1.18.x" | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
go-version-file: 'go.mod' | ||
- run: go test -race ./... | ||
- run: go test -fuzz=. -fuzztime=30s | ||
- run: go test -fuzz=Plain -fuzztime=30s ./internal/charset | ||
- run: go test -fuzz=XML -fuzztime=30s ./internal/charset | ||
- run: go test -fuzz=HTML -fuzztime=30s ./internal/charset | ||
|
||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Install Go | ||
if: success() | ||
uses: actions/[email protected] | ||
with: | ||
go-version: "1.18.x" | ||
- name: Generate coverage | ||
run: go test -race -covermode=atomic -coverprofile=coverage.out | ||
- uses: codecov/[email protected] | ||
with: | ||
files: ./coverage.out |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= | ||
golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= | ||
golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= | ||
golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= |
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