From 47296100c20636aa047654c423a41a601ee9f7fc Mon Sep 17 00:00:00 2001 From: Erlan Rangel Date: Wed, 20 Aug 2025 14:44:41 -0600 Subject: [PATCH] add: ci and release workflows --- .github/workflows/ci.yml | 43 +++++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 19 ++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8cbb7c8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build-go: + name: Go Build and Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23.0' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... + + build-makefile: + name: Makefile Build and Install + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23.0' + + - name: Build + run: make + + - name: Install + run: make install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b7511b4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + token: ${{ secrets.PAT_TOKEN }} + release-type: simple