Skip to content

fix(repair): restore missing remote.origin.fetch refspec on legacy hubs #72

fix(repair): restore missing remote.origin.fetch refspec on legacy hubs

fix(repair): restore missing remote.origin.fetch refspec on legacy hubs #72

Workflow file for this run

name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
build-test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Cache Go Modules
uses: actions/cache@v5
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Build
run: go build ./...
- name: Vet
run: go vet ./...
- name: Lint
run: staticcheck ./...
- name: Run Tests
run: go test -coverprofile=coverage.out ./...
- name: Upload Coverage
uses: actions/upload-artifact@v5
with:
name: coverage
path: coverage.out
build-matrix:
name: Build Matrix
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: go build .