Skip to content

actions: bump actions/setup-go from 4 to 5 #68

actions: bump actions/setup-go from 4 to 5

actions: bump actions/setup-go from 4 to 5 #68

Workflow file for this run

name: Go
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions: # permissions for the Github token
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Build
run: make build_all
- name: Test
run: make test
- name: Coverage
run: go test -coverprofile=cover.out ./...
- name: Report test-coverage to DeepSource
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
run: |
# Install the CLI
curl https://deepsource.io/cli | sh
# Send the report to DeepSource
./bin/deepsource report --analyzer test-coverage --key go --value-file cover.out