Skip to content

feat: add protocols column to requests_dnf #9

feat: add protocols column to requests_dnf

feat: add protocols column to requests_dnf #9

Workflow file for this run

name: continuous integration
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.21, 1.22]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
- name: Install dependencies
run: go mod download
- name: Check Go fmt
run: |
if ! go fmt ./...; then
echo "Go fmt check failed"
exit 1
fi
- name: Run Go vet
run: go vet ./...
- name: Run tests
run: go test ./... -v -cover