Skip to content

feat: handle inputs and ouputs #328

feat: handle inputs and ouputs

feat: handle inputs and ouputs #328

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.18
- 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.17
- 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.17
- 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 }}