diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 444b574..9ac79cd 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,18 +21,22 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... + env: + # The hostname used to communicate with the Redis service container + REDIS_HOST: redis + # The default Redis port + REDIS_PORT: 6379 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.20' - - - name: Build - run: go build -v ./... - - - name: Test - run: go test -v ./...