fix: due to buffering in the underlying stream reads are limited in size #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
concurrency: | |
group: s3iofs-unit-tests-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Unit Tests | |
strategy: | |
matrix: | |
go-version: ["1.20"] | |
platform: ["ubuntu-latest"] | |
runs-on: ${{ matrix.platform }} | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: true | |
- run: go mod download | |
- run: go build -v . | |
- name: Run linters | |
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0 | |
with: | |
version: latest | |
- name: Install tparse | |
run: go install github.com/mfridman/tparse@latest | |
- name: Test | |
env: | |
COVER_OPTS: "-coverprofile=coverage.txt -covermode=atomic" | |
GOFLAGS: "-v -count=1 -json" | |
run: go test $COVER_OPTS ./... | tparse -all -notests -format markdown >> $GITHUB_STEP_SUMMARY | |
- name: Integration Test | |
env: | |
COVER_OPTS: "-coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/wolfeidau/s3iofs" | |
GOFLAGS: "-v -count=1 -json" | |
run: go test $COVER_OPTS ./... | tparse -all -notests -format markdown >> $GITHUB_STEP_SUMMARY | |
working-directory: integration |