-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- dependabot to keep dependencies up to date - PR workflow to run tests and lint fix: linter findings Signed-off-by: Sandor Szücs <[email protected]>
- Loading branch information
Showing
6 changed files
with
176 additions
and
112 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,15 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# * https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
# * https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" # For GitHub Actions, set the directory to / to check for workflow files in .github/workflows | ||
schedule: | ||
interval: "weekly" |
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,43 @@ | ||
name: pr | ||
on: [ pull_request ] | ||
permissions: | ||
contents: read | ||
jobs: | ||
semgrep: | ||
if: ${{ github.actor != 'dependabot[bot]' }} | ||
runs-on: ubuntu-latest | ||
container: | ||
image: returntocorp/semgrep | ||
steps: | ||
# Retrieve the source code for the repository | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
# Fetch the semgrep rules | ||
- run: git clone https://github.com/dgryski/semgrep-go.git | ||
# Run the rule checker using the fetched rules | ||
- run: semgrep ci -f semgrep-go | ||
|
||
check-race: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 | ||
with: | ||
# https://www.npmjs.com/package/semver#caret-ranges-123-025-004 | ||
go-version: '^1.21' | ||
check-latest: true | ||
- run: go version | ||
- run: go test -race ./... | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 | ||
with: | ||
# https://www.npmjs.com/package/semver#caret-ranges-123-025-004 | ||
go-version: '^1.21' | ||
check-latest: true | ||
- run: go version | ||
- run: go vet ./github ./google ./zalando | ||
- run: go test ./... | ||
- run: go install honnef.co/go/tools/cmd/staticcheck@latest | ||
- run: staticcheck -checks "all" ./github ./google ./zalando |
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
Oops, something went wrong.