chore(deps): Bump gocloud.dev from 0.38.0 to 0.40.0 #259
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: Test | |
on: | |
pull_request: {} | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.21.x, 1.22.x, 1.23.x] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: true | |
cache-dependency-path: go.sum | |
- name: Test | |
run: go test ./... -cover | |
integration-test: | |
name: Integration test - ${{ matrix.fs }} | |
strategy: | |
matrix: | |
include: | |
- fs: local | |
config: | |
bucket: file://./output/my-bucket | |
- fs: s3 | |
config: | |
bucket: s3://my-bucket?endpoint=http://127.0.0.1:9000&disableSSL=true&s3ForcePathStyle=true®ion=us-west-1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Start MinIO | |
if: ${{ matrix.fs == 's3' }} | |
run: > | |
docker run -d | |
--name minio | |
-p 9000:9000 | |
-p 9090:9090 | |
-v $PWD/output:/data | |
-e "MINIO_REGION_NAME=eu-west-1" | |
-e "MINIO_ROOT_USER=minioadmin" | |
-e "MINIO_ROOT_PASSWORD=minioadmin" | |
quay.io/minio/minio server /data --console-address ":9090" | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.x | |
cache: true | |
cache-dependency-path: go.sum | |
- name: Build | |
run: | | |
go build | |
./target-jsonl-blob --version | |
- name: Write config | |
run: | | |
echo '${{ toJSON(matrix.config) }}' > config.json | |
- run: mkdir output/my-bucket | |
- name: Test | |
env: | |
AWS_ACCESS_KEY_ID: minioadmin | |
AWS_SECRET_ACCESS_KEY: minioadmin | |
run: | | |
./target-jsonl-blob --config config.json --input resources/data/data.jsonl |