Skip to content

[Automatic] Update packages.json #117

[Automatic] Update packages.json

[Automatic] Update packages.json #117

Workflow file for this run

name: PR Quality Gate
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 #Shallow Clones should be disabled for a better relevancy of analysis
- uses: actions/setup-go@v5
with:
go-version: '^1.22'
- name: Setup GO environment
run: |
go mod download
- name: Lint and run unit tests
run: |
make test
go tool cover -func coverage.out
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Build
run: make build