Skip to content

Merge pull request #22 from systemli/dependabot/go_modules/adapter-07… #74

Merge pull request #22 from systemli/dependabot/go_modules/adapter-07…

Merge pull request #22 from systemli/dependabot/go_modules/adapter-07… #74

Workflow file for this run

name: Integration
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Test
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@v3.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
build:
name: Build
runs-on: ubuntu-22.04
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Build Releases
uses: goreleaser/goreleaser-action@v6.1.0
with:
version: "~> v2"
args: release --clean --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}