Skip to content

Commit

Permalink
ci: added basic ci
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Feb 9, 2024
1 parent f359556 commit 09933f7
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: build
on:
push:
branches: [main]
pull_request:
paths:
- '**.go'
permissions:
contents: read
jobs:
interceptor:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- uses: actions/checkout@v3
- name: Build Interceptor
run: make build-interceptor
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: lint
on:
push:
branches: [main]
pull_request:
paths:
- '**.go'
permissions:
contents: read
jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/[email protected]
with:
version: v1.54
args: --timeout 5m
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore build directory
build/
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Makefile for building go-codegen

# Target directory for the build output
BUILD_DIR := build

.PHONY: build

build:
@echo "Building go-codegen..."
@go build -o $(BUILD_DIR)/go-codegen main.go
@echo "Build complete!"

0 comments on commit 09933f7

Please sign in to comment.