bold-brew/.github/workflows/quality.yml
Vito Castellano e22b82cc67
Some checks failed
Quality / golangci-lint (push) Has been cancelled
Quality / Build (push) Has been cancelled
Quality / Build-1 (push) Has been cancelled
Security / Go Vulnerability Check (push) Has been cancelled
Security / Security Scanner (push) Has been cancelled
chore: add binary artifact (#38)
Build and upload test binaries for Linux (amd64) and macOS (arm64)
as GitHub Actions artifacts. These are only accessible via PR checks
and expire after 7 days, allowing reviewers to test without building
from source.
2025-11-22 01:24:34 +01:00

55 lines
No EOL
1.2 KiB
YAML

name: Quality
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
linter:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.5.0
skip-cache: true
build:
name: Build
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
include:
- os: ubuntu-latest
artifact_name: bbrew-linux-amd64
- os: macos-latest
artifact_name: bbrew-darwin-arm64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Get dependencies
run: go mod download
- name: Build
run: go build -v ./...
- name: Build binary for testing
run: |
go build -o bbrew ./cmd/bbrew
chmod +x bbrew
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: bbrew
retention-days: 7