Skip to content

chore: rework project structure #539

chore: rework project structure

chore: rework project structure #539

Workflow file for this run

name: Quality
on:
push:
branches: [ "main", "releases?/**" ]
pull_request:
branches: [ "main", "releases?/**" ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- uses: golangci/golangci-lint-action@v3
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Test
run: go test -v ./...
scan:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Test
run: go test -coverpkg=./... ./... -coverprofile=coverage.out -json > report.json
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}