Skip to content

Add custom search attributes #1389

Add custom search attributes

Add custom search attributes #1389

Workflow file for this run

name: Tests and build
on:
push:
branches: [main]
pull_request:
branches: [main]
defaults:
run:
shell: bash
env:
GO_VERSION: "1.21.5"
GOLANG_CI_VERSION: v1.55.2
jobs:
license:
name: Check license on files
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: check
run: make check-license
lint:
name: Lint files
runs-on: 'ubuntu-latest'
steps:
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- uses: actions/checkout@v4
- name: lint
uses: golangci/golangci-lint-action@v3
with:
version: ${{ env.GOLANG_CI_VERSION }}
build:
name: Build operator
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Use go modules caches
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: build
run: make build
test:
name: Test operator
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Use go modules caches
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: build
run: make test