Skip to content

Initial files added for a go project #1

Initial files added for a go project

Initial files added for a go project #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Cache Go modules
uses: actions/cache@v6
with:
path: |
~/.cache/go/pkg/mod
~/.cache/go/build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.12
- name: Test
run: go test -race -count=1 ./...
- name: Build (smoke)
run: go build -o /dev/null .