Files
go-storage/.github/workflows/go.yml
T
jkaninda 2dc0864b35
Go / test (push) Canceled after 0s
Lint / Run on Ubuntu (push) Canceled after 0s
Go / integration (push) Canceled after 0s
feat: streaming Put/Get, conditional writes and aws-sdk-go-v2 (#33)
2026-10-27 20:46:54 +01:00

49 lines
1.1 KiB
YAML

name: Go
on:
push:
branches: [ "main", "v2" ]
pull_request:
branches: [ "main", "v2" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: '1.25'
- name: Build
run: go build -v ./...
- name: Vet
run: go vet ./... && go vet -tags integration ./...
- name: Unit tests
run: go test -race -count=1 ./...
integration:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Pull images
run: |
docker pull pgsty/minio:latest
docker pull mcr.microsoft.com/azure-storage/azurite:latest
docker pull fsouza/fake-gcs-server:latest
docker pull delfer/alpine-ftp-server:latest
- name: Integration tests (MinIO, Azurite, fake-gcs-server, FTP)
run: go test -tags integration -count=1 -v -run Integration ./...