Skip to content
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

ci: faster workflow #318

Merged
merged 1 commit into from
May 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ jobs:
"actor": "${{ github.actor }}",
"repo": "${{ github.repository }}",
"status": "FAIL",
"url": "${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"title": "${{ github.event.pull_request.title }}",
"pr": "${{ github.event.pull_request.head.ref }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Expand All @@ -117,7 +118,8 @@ jobs:
"actor": "${{ github.actor }}",
"repo": "${{ github.repository }}",
"status": "SUCCESS",
"url": "${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"title": "${{ github.event.pull_request.title }}",
"pr": "${{ github.event.pull_request.head.ref }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_SUCCESS }}
6 changes: 4 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ jobs:
"actor": "${{ github.actor }}",
"repo": "${{ github.repository }}",
"status": "FAIL",
"url": "${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"title": "push to ${{ github.event.push.base_ref }}",
"pr": ""
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Expand All @@ -125,7 +126,8 @@ jobs:
"actor": "${{ github.actor }}",
"repo": "${{ github.repository }}",
"status": "SUCCESS",
"url": "${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"title": "push to ${{ github.event.push.base_ref }}",
"pr": ""
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_SUCCESS }}
12 changes: 12 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
linters:
disable-all: true
enable:
- gofmt
- staticcheck
- gosec
- gosimple
- govet
- ineffassign

run:
issues-exit-code: 1
2 changes: 1 addition & 1 deletion std/signature/eddsa/eddsa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestEddsa(t *testing.T) {
for i := 0; i < bound; i++ {
seed := time.Now().Unix()
t.Logf("setting seed in rand %d", seed)
randomness := rand.New(rand.NewSource(seed))
randomness := rand.New(rand.NewSource(seed)) //#nosec G404 -- This is a false positive

for _, conf := range confs {

Expand Down