Skip to content

fix: allow cloning into empty directories #23

fix: allow cloning into empty directories

fix: allow cloning into empty directories #23

Workflow file for this run

name: Build
on:
push:
branches: [main]
paths-ignore:
- 'docs/**'
- '*.md'
- 'mkdocs.yml'
- 'LICENSE'
- '.github/workflows/docs.yaml'
pull_request:
branches: [main]
paths-ignore:
- 'docs/**'
- '*.md'
- 'mkdocs.yml'
- 'LICENSE'
- '.github/workflows/docs.yaml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Install X11 dependencies
run: sudo apt-get update && sudo apt-get install -y libx11-dev
- name: Install dependencies
run: go mod download
- name: Build
run: go build -v ./cmd/ag
- name: Test
run: go test -v ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Install X11 dependencies
run: sudo apt-get update && sudo apt-get install -y libx11-dev
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest