Merge pull request #437 from hearchco/as/fix/favicons #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |