Update implementation and vectors to OPAQUE draft v12 and VOPRF draft v21 #213
Workflow file for this run
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
name: OPAQUE | |
on: | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@27135e314dd1818f797af1db9dae03a9f045786b # pin@master | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@c51a7207680f1bee06f4a751214aab70667f9e25 # pin@master | |
with: | |
go-version-file: ./go.mod | |
# Linting | |
- name: Linting | |
uses: golangci/golangci-lint-action@9cb5ef734c83c4a375008f65983ab82f8d416598 # pin@master | |
with: | |
version: latest | |
args: --config=./.github/.golangci.yml ./... | |
only-new-issues: true | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: [ '1.21', '1.20' ] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@27135e314dd1818f797af1db9dae03a9f045786b # pin@master | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@c51a7207680f1bee06f4a751214aab70667f9e25 # pin@master | |
with: | |
go-version: ${{ matrix.go }} | |
# Test | |
- name: Run Tests | |
run: cd .github && make test | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@27135e314dd1818f797af1db9dae03a9f045786b # pin@master | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@c51a7207680f1bee06f4a751214aab70667f9e25 # pin@master | |
with: | |
go-version-file: ./go.mod | |
# Coverage | |
- name: Run coverage | |
run: cd .github && make cover | |
# Codecov | |
- name: Codecov | |
uses: codecov/codecov-action@ef2b0df87fbbd2569a553208e78409b1bc2fb469 # pin@master | |
with: | |
file: .github/coverage.out | |
# Sonar | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@5ee47de3c96f0c1c51b09d2ff1fec0cfeefcf67c # pin@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
with: | |
args: > | |
-Dsonar.organization=bytemare-github | |
-Dsonar.projectKey=bytemare_opaque | |
-Dsonar.go.coverage.reportPaths=.github/coverage.out | |
-Dsonar.sources=. | |
-Dsonar.test.exclusions=examples_test.go,tests/** | |
-Dsonar.coverage.exclusions=examples_test.go,tests/** | |
-Dsonar.tests=tests/ | |
-Dsonar.verbose=true |