Skip to content

Commit

Permalink
feat: add ci with github actions (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishekvrshny authored Nov 24, 2024
1 parent 7accf6a commit d22498e
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PR Workflow

on: [push]
jobs:
tests:
runs-on: ubuntu-latest
container: golang:1.23.3-alpine3.20
continue-on-error: false
name: checks
steps:
- name: checkout
id: checkout
uses: actions/checkout@v1
with:
submodules: true
- name: install prerequisites
run: |
apk add --update --no-cache --repository https://dl-4.alpinelinux.org/alpine/latest-stable/community/ build-base gcc make git librdkafka-dev pkgconf curl
- name: generate proto
run: |
make proto-generate
- name: golint-check
run: |
make golint-check
- name: goimports-check
run: |
make goimports-check
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Stage 1 - build stage
######################################
FROM golang:1.21.13 as builder
FROM golang:1.23.3 as builder

RUN mkdir -p /src
WORKDIR /src
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ $(BIN)/golint: PACKAGE=golang.org/x/lint/golint@latest

GOLINT = $(BIN)/golint

.PHONY: go-lint ## Run golint check
go-lint: | $(GOLINT) ; $(info $(M) running golint…) @
.PHONY: golint-check ## Run golint check
golint-check: | $(GOLINT) ; $(info $(M) running golint…) @
$Q $(GOLINT) -set_exit_status $(PKGS)

.PHONY: proto-generate ## Generate proto bindings
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/CRED-CLUB/propeller

go 1.21
go 1.23

require (
github.com/google/uuid v1.6.0
Expand Down

0 comments on commit d22498e

Please sign in to comment.