Skip to content

secretstore refactor #11

secretstore refactor

secretstore refactor #11

Workflow file for this run

name: CI
on:
push:
branches: [ main, backend/app-chat-logic ]
pull_request:
branches: [ main, backend/app-chat-logic ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: true
cache-dependency-path: go.sum
- name: Go build cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: latest
args: --timeout=5m
test-and-build:
runs-on: ubuntu-latest
needs: [ lint ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: true
cache-dependency-path: go.sum
- name: Go build cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Download modules
run: go mod download
- name: Run tests
run: go test ./... -race -coverprofile=coverage.out -covermode=atomic
- name: Build hub
run: go build -v -o bin/kitty-hub ./cmd/hub
- name: Build client
run: go build -v -o bin/kitty-client ./cmd/client
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: kitty-binaries
path: bin/