Skip to content

Add s3 batch consumer #150

Add s3 batch consumer

Add s3 batch consumer #150

Workflow file for this run

name: Go Test
on:
pull_request:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: true
jobs:
go-tests:
runs-on: ubuntu-latest
timeout-minutes: 2 # in minutes
services:
s3:
image: localstack/localstack:s3-latest
ports:
- "127.0.0.1:4566:4566"
environment:

Check failure on line 25 in .github/workflows/go-test.yml

View workflow run for this annotation

GitHub Actions / Go Test

Invalid workflow file

The workflow is not valid. .github/workflows/go-test.yml (Line: 25, Col: 9): Unexpected value 'environment'
- DEBUG=${DEBUG:-0}
- S3_BUCKET=${S3_BUCKET:-locals3}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-test}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-test}
volumes:
- "./s3_local/init_s3.py:/etc/localstack/init/ready.d/init-s3.py"
steps:
- name: Wait for LocalStack to be ready
run: |
until curl -s http://127.0.0.1:4566/health | grep "\"s3\": \"running\""; do
echo "Waiting for LocalStack to start..."
sleep 5
done
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23.x'
- name: Install dependencies
run: go mod download
- name: Test with the Go CLI
run: go test ./host ./eth ./tele