-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/dedis/kyber
- Loading branch information
Showing
9 changed files
with
108 additions
and
24 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,28 @@ | ||
name: Go lint | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
|
||
jobs: | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Use go >= 1.13 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '>=1.13' | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Tidy | ||
run: go mod tidy && [ -z "$(git status -s)" ] | ||
|
||
- name: Lint | ||
run: make lint | ||
|
||
- name: Vet | ||
run: make vet |
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: Go test | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
|
||
jobs: | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
runs-on: ${{matrix.platform}} | ||
|
||
steps: | ||
- name: Use go >= 1.13 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '>=1.13' | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Test with coverage | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: go test -json -covermode=count -coverprofile=profile.cov ./... > report.json | ||
|
||
- name: Test without coverage | ||
if: matrix.platform == 'macos-latest' || matrix.platform == 'windows-latest' | ||
run: go test ./... | ||
|
||
- name: Sonarcloud scan | ||
if: matrix.platform == 'ubuntu-latest' | ||
uses: sonarsource/sonarcloud-github-action@master | ||
with: | ||
args: > | ||
-Dsonar.organization=dedis | ||
-Dsonar.projectKey=dedis_kyber | ||
-Dsonar.go.tests.reportPaths=report.json | ||
-Dsonar.go.coverage.reportPaths=profile.cov | ||
-Dsonar.c.file.suffixes=- | ||
-Dsonar.cpp.file.suffixes=- | ||
-Dsonar.objc.file.suffixes=- | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
- name: Send coverage | ||
if: matrix.platform == 'ubuntu-latest' | ||
uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
path-to-profile: profile.cov | ||
parallel: true | ||
|
||
# notifies that all test jobs are finished. | ||
finish: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
parallel-finished: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
.DEFAULT_GOAL := test | ||
lint: | ||
# Coding style static check. | ||
@go install honnef.co/go/tools/cmd/staticcheck@latest | ||
@go mod tidy | ||
#staticcheck `go list ./...` | ||
|
||
Coding/bin/Makefile.base: | ||
git clone https://github.com/dedis/Coding | ||
include Coding/bin/Makefile.base | ||
vet: | ||
go vet ./... | ||
|
||
# target to run all the possible checks; it's a good habit to run it before | ||
# pushing code | ||
check: lint vet | ||
go test ./... |
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,3 +1,4 @@ | ||
//go:build experimental | ||
// +build experimental | ||
|
||
package curve25519 | ||
|
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,3 +1,4 @@ | ||
//go:build experimental | ||
// +build experimental | ||
|
||
package curve25519 | ||
|
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,3 +1,4 @@ | ||
//go:build (amd64 && !generic) || (arm64 && !generic) | ||
// +build amd64,!generic arm64,!generic | ||
|
||
package bn256 | ||
|
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,3 +1,4 @@ | ||
//go:build (!amd64 && !arm64) || generic | ||
// +build !amd64,!arm64 generic | ||
|
||
package bn256 | ||
|