Skip to content

Merge pull request #457 from hearchco/dependabot/go_modules/github.co… #117

Merge pull request #457 from hearchco/dependabot/go_modules/github.co…

Merge pull request #457 from hearchco/dependabot/go_modules/github.co… #117

Workflow file for this run

name: Main CI
on:
push:
branches: ["main"]
paths:
- ".github/workflows/ci_main.yml" # this file
- "go.mod"
- "go.sum"
- "Makefile"
- "goreleaser/develop.yml"
- "generate/**/*"
- "src/**/*"
- "docker/**/*"
- ".dockerignore"
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64,arm
- name: Generate go code from go:generate comments
run: make install
- name: Snapshot release
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: release --snapshot --clean --config goreleaser/develop.yml
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Generate go code from go:generate comments
run: make install
- name: Build project
run: make compile
- name: Test units
run: make test