From 8ea241c5276f378647f964a708504785bacf0043 Mon Sep 17 00:00:00 2001 From: Mikel Cortes <45786396+cortze@users.noreply.github.com> Date: Fri, 31 Jan 2025 17:11:24 +0100 Subject: [PATCH] replace: ipdx go-test for actions/setup-go@v5 --- .github/workflows/go-test.yml | 37 +++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index ff53633..18bd8ab 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -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 @@ -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