Skip to content

Fix Go version in go.yml #2

Fix Go version in go.yml

Fix Go version in go.yml #2

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build + Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.2'
- name: Postgres Docker
run: docker run -p 5432:5432 -d -e POSTGRES_HOST_AUTH_METHOD=trust postgres
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
sonarCloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}