-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup CI workflows #321
Merged
Merged
Cleanup CI workflows #321
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c9956ca
initial cleanup of ci files
gaby 30a0d16
Update paths rules and go-version
gaby 67ab604
Rename workflows
gaby eca0097
Update workflow name
gaby ebf3b53
Fix #319
gaby d5924ad
Only run benchmark workflow on go changes
gaby b38666b
Fix workflow failure
gaby 9da39ff
Run Benchmark if go.mod files change
gaby File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,4 +1,5 @@ | ||
name: Dependabot auto-merge | ||
|
||
on: | ||
pull_request | ||
|
||
|
@@ -12,7 +13,7 @@ jobs: | |
if: ${{ github.actor == 'dependabot[bot]' }} | ||
steps: | ||
- name: Wait for check is finished | ||
uses: lewagon/[email protected].1 | ||
uses: lewagon/[email protected].3 | ||
id: wait_for_checks | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
|
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,40 @@ | ||
name: Golangci-Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "main" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
pull_request: | ||
branches: | ||
- "*" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
golangci-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Fetch Repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
# NOTE: Keep this in sync with the version from go.mod | ||
go-version: '1.20.x' | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
# NOTE: Keep this in sync with the version from .golangci.yml | ||
version: 'v1.52.2' |
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,64 @@ | ||
name: Gosec Security Scan | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "main" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
pull_request: | ||
branches: | ||
- "*" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
|
||
jobs: | ||
detect-changes: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.changed-files.outputs.all_changed_files }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Changed Files | ||
uses: tj-actions/changed-files@v41 | ||
id: changed-files | ||
with: | ||
files_ignore: | | ||
.github/** | ||
**.md | ||
json: true | ||
escape_json: false | ||
dir_names: true | ||
dir_names_exclude_current_dir: true | ||
|
||
gosec-scan: | ||
runs-on: ubuntu-latest | ||
needs: detect-changes | ||
env: | ||
GO111MODULE: on | ||
strategy: | ||
matrix: | ||
modules: ${{ fromJSON(needs.detect-changes.outputs.matrix) }} | ||
steps: | ||
- name: Fetch Repository | ||
uses: actions/checkout@v4 | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '^1.21.x' | ||
check-latest: true | ||
cache: false | ||
- name: Install gosec | ||
run: go install github.com/securego/gosec/v2/cmd/gosec@latest | ||
- name: Run gosec | ||
working-directory: ${{ matrix.modules }} | ||
run: gosec ./... |
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,39 @@ | ||
name: Govulncheck Security Scan | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "main" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
pull_request: | ||
branches: | ||
- "*" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
|
||
jobs: | ||
govulncheck-check: | ||
runs-on: ubuntu-latest | ||
env: | ||
GO111MODULE: on | ||
steps: | ||
- name: Fetch Repository | ||
uses: actions/checkout@v4 | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 'stable' | ||
check-latest: true | ||
cache: false | ||
- name: Install Govulncheck | ||
run: go install golang.org/x/vuln/cmd/govulncheck@latest | ||
- name: Run Govulncheck | ||
run: govulncheck ./... |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ on: | |
paths: | ||
- 'ace/**' | ||
pull_request: | ||
branches: | ||
- '*' | ||
paths: | ||
- 'ace/**' | ||
name: Tests Ace | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,8 @@ on: | |
paths: | ||
- 'amber/**' | ||
pull_request: | ||
branches: | ||
- '*' | ||
paths: | ||
- 'amber/**' | ||
name: Tests Amber | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,8 @@ on: | |
paths: | ||
- 'django/**' | ||
pull_request: | ||
branches: | ||
- '*' | ||
paths: | ||
- 'django/**' | ||
name: Tests Django | ||
|
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Runners have
jq
pre-installed.