Skip to content

perf(pull): batch remote size lookups into one rclone call #131

perf(pull): batch remote size lookups into one rclone call

perf(pull): batch remote size lookups into one rclone call #131

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
test:
name: Go ${{ matrix.go }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
go: ["1.x"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: true
- name: Install rclone (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install -y rclone
- name: Install rclone (macOS)
if: runner.os == 'macOS'
run: brew install rclone
- name: Format check
run: test -z "$(gofmt -l .)"
- name: Unit and integration tests
run: go test ./...
- name: Coverage
if: matrix.os == 'ubuntu-latest' && matrix.go == '1.x'
run: go test -covermode=atomic -coverprofile=coverage.out ./...
- name: Upload coverage
if: matrix.os == 'ubuntu-latest' && matrix.go == '1.x'
uses: codecov/codecov-action@v5
with:
files: coverage.out
fail_ci_if_error: false
- name: Build
run: go build ./cmd/git-sfs
- name: Workflow suite
run: bash test/workflows/run.sh