Skip to content

build: remove branch to resolve cant find default branch error #41

build: remove branch to resolve cant find default branch error

build: remove branch to resolve cant find default branch error #41

Workflow file for this run

name: Go Pipeline
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/[email protected]
with:
egress-policy: audit
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: true
- name: Download dependencies
run: go mod download
- name: Running Linter
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
args: --timeout=5m
- name: Check Formatting
run: test -z "$(gofmt -s -l -e .)"
- name: Running Tests
run: make test