Add s3 batch consumer #144
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: 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: | ||
localstack-s3-setup: | ||
services: | ||
s3: | ||
image: localstack/localstack:s3-latest | ||
ports: | ||
- "127.0.0.1:4566:4566" | ||
environment: | ||
Check failure on line 23 in .github/workflows/go-test.yml
|
||
- DEBUG=${DEBUG:-0} | ||
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 | ||
go-test: | ||
uses: ipdxco/unified-github-workflows/.github/workflows/go-test.yml@v1.0 | ||
with: | ||
go-versions: '["this"]' | ||
secrets: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||