Skip to content

deps(go-tools): bump golang.org/x/tools from 0.24.0 to 0.25.0 in /tools #217

deps(go-tools): bump golang.org/x/tools from 0.24.0 to 0.25.0 in /tools

deps(go-tools): bump golang.org/x/tools from 0.24.0 to 0.25.0 in /tools #217

Workflow file for this run

name: QA & sanity checks
on:
push:
branches:
- main
tags:
- "*"
pull_request:
jobs:
quality:
name: Code sanity
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt update
sudo DEBIAN_FRONTEND=noninteractive apt install -y curl ca-certificates git
- uses: actions/checkout@v4
- name: Go code sanity check
uses: canonical/desktop-engineering/gh-actions/go/code-sanity@main
with:
golangci-lint-configfile: ".golangci-ci.yaml"
tools-directory: "tools"
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run tests
run: |
go test -coverpkg=./... -coverprofile=/tmp/coverage.tmp -covermode=count ./...
# Exclude testutils and generated files from the final coverage report
grep -hv -e "testutils" -e "_string\.go" /tmp/coverage.tmp > /tmp/coverage.out
- name: Run tests (with race detector)
run: |
go test -race ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: /tmp/coverage.out