Skip to content

Commit

Permalink
replace: ipdx go-test for actions/setup-go@v5
Browse files Browse the repository at this point in the history
  • Loading branch information
cortze committed Jan 31, 2025
1 parent 99dca22 commit 8ea241c
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ concurrency:
cancel-in-progress: true

jobs:
localstack-s3-setup:
go-tests:
runs-on: ubuntu-latest
timeout-minutes: 2 # in minutes
services:
s3:
image: localstack/localstack:s3-latest
Expand All @@ -28,19 +30,24 @@ jobs:
volumes:
- "./s3_local/init_s3.py:/etc/localstack/init/ready.d/init-s3.py"


steps:
- name: Wait for LocalStack to be ready
- timeout-minutes: 2 # in minutes
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 }}
- 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

0 comments on commit 8ea241c

Please sign in to comment.