Skip to content

Merge pull request #6 from dedis/align-Bucket-to-Snapshot #23

Merge pull request #6 from dedis/align-Bucket-to-Snapshot

Merge pull request #6 from dedis/align-Bucket-to-Snapshot #23

Workflow file for this run

name: Go test
on:
push:
branches: [ main ]
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest] #, macos-latest, windows-latest]
runs-on: ${{matrix.platform}}
env:
LLVL: trace
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of Sonar analysis
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: "=1.21"
- name: Test without coverage
run: make test
- name: Test with coverage
if: matrix.platform == 'ubuntu-latest'
run: make coverage
- name: Sonarcloud scan
if: matrix.platform == 'ubuntu-latest'
uses: sonarsource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=dedis
-Dsonar.projectKey=dedis_purb-db
-Dsonar.go.tests.reportPaths=report.json
-Dsonar.go.coverage.reportPaths=profile.cov
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}