Skip to content

DV-3298-gpg-sign-packages #18

DV-3298-gpg-sign-packages

DV-3298-gpg-sign-packages #18

Workflow file for this run

name: Lint and Test
on:
pull_request:
branches: [ main, dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24.4'
- name: Cache Go modules
uses: actions/cache@v4
with:
path: ${{ github.go.gopath }}/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.1
- name: Run linter
run: golangci-lint run ./...
- name: Run tests
run: go test -v ./...