Skip to content

Commit

Permalink
Add CI job
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Pavlov <[email protected]>
  • Loading branch information
Kshatrix committed May 22, 2024
1 parent 31dfcf4 commit e1cb779
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build and Test

on:
push:
branches:
- main
- release-*
tags:
- "*"
paths-ignore:
- 'config/**'
- '**.md'
pull_request:
branches:
- main
- release-*
tags:
- "*"
paths-ignore:
- 'config/**'
- '**.md'

env:
GO_VERSION: '1.22'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Check go mod
run: go mod tidy && git diff --exit-code
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
args: --timeout 10m0s
- name: Unit tests
run: |
make test
- name: Build
run: |
make build
- name: Image build
run: |
make docker-build

0 comments on commit e1cb779

Please sign in to comment.