Skip to content

Update .goreleaser.yaml #3

Update .goreleaser.yaml

Update .goreleaser.yaml #3

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
pull_request:
jobs:
build-lint:
name: Build, Test, and Lint
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go-version: ["1.22.x", "stable"]
os: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Install dependencies
run: go mod download
- name: Install golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v4
with:
args: --timeout 5m
- name: Run build
run: go build
security:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: go
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2