-
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.
Merge pull request #10 from kilianpaquier/main
Backmerge
- Loading branch information
Showing
12 changed files
with
73 additions
and
51 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
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 |
---|---|---|
|
@@ -11,47 +11,59 @@ on: | |
- staging | ||
- develop | ||
- v[0-9]+ | ||
- v[0-9]+.[0-9]+ | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
go-vulncheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: golang/govulncheck-action@v1 | ||
with: | ||
check-latest: true | ||
go-package: ./... | ||
go-version-file: go.mod | ||
|
||
go-lint: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
checks: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
cache: false | ||
check-latest: true | ||
go-version-file: go.mod | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: golangci/golangci-lint-action@v4 | ||
with: | ||
args: --config .golangci.yml --timeout 240s --fast --sort-results --out-format colored-line-number | ||
args: --config build/ci/.golangci.yml --timeout 240s --fast --sort-results --out-format colored-line-number | ||
|
||
go-test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- on: macos-latest | ||
include: | ||
- os: macos-latest | ||
args: CGO_ENABLED="0" | ||
- on: ubuntu-latest | ||
- os: ubuntu-latest | ||
args: CGO_ENABLED="0" | ||
- on: windows-latest | ||
- os: windows-latest | ||
args: env CGO_ENABLED="0" | ||
runs-on: ${{ matrix.os.on }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
OS: ${{ matrix.os.on }} | ||
OS: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
check-latest: true | ||
go-version-file: go.mod | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: ${{ matrix.os.args }} go test ./... -coverpkg="./..." -covermode="count" -coverprofile="coverage.out" | ||
- run: ${{ matrix.args }} go test ./... -coverpkg="./..." -covermode="count" -coverprofile="coverage.out" | ||
- uses: codecov/codecov-action@v4 | ||
if: ${{ ! startsWith(github.ref_name, 'dependabot') }} # ignore codecov on dependabot branches | ||
if: ${{ ! startsWith(github.base_ref, 'dependabot') }} # ignore codecov on dependabot branches | ||
with: | ||
codecov_yml_path: codecov.yml | ||
disable_search: true | ||
|
@@ -67,7 +79,7 @@ jobs: | |
pull-requests: write | ||
security-events: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: hadolint/[email protected] | ||
continue-on-error: true # enforce scan upload to codeql | ||
with: | ||
|
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 |
---|---|---|
|
@@ -24,6 +24,7 @@ dist | |
go.work | ||
|
||
# reports | ||
reports/ | ||
*.json | ||
*.xml | ||
|
||
|
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,12 +1,3 @@ | ||
# This file is safe to edit. Once it exists it will not be overwritten. | ||
|
||
include ./scripts/*.mk | ||
|
||
.PHONY: generate | ||
generate: | ||
@craft generate $(ARGS) | ||
|
||
.PHONY: clean | ||
clean: | ||
@go clean | ||
@git clean -Xf ./* | ||
include ./scripts/*.mk |
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Code generated by craft; DO NOT EDIT. | ||
|
||
.PHONY: generate | ||
generate: | ||
@craft generate $(ARGS) | ||
|
||
.PHONY: clean | ||
clean: | ||
@go clean | ||
@git clean -Xf ./* |