6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 15:39:46 +00:00
Files
git-get/.github/workflows/ci.yml
Grzegorz Dlugoszewski f9ff6e0dbd Re-enable windows tests
2025-08-24 20:56:07 +02:00

68 lines
1.3 KiB
YAML

name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
workflow_call:
permissions:
contents: read
security-events: write
jobs:
test:
name: Test
strategy:
matrix:
go-version: ['1.24']
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Download dependencies
run: go mod download
- name: Verify dependencies
run: go mod verify
- name: Build binary
run: go build -v -o bin/git-get ./cmd/
- name: Run tests
run: go test -race ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
cache: true
- name: Run lints
uses: golangci/golangci-lint-action@v8
with:
version: v2.4.0
args: --timeout=5m