diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index b70e5db..a5a3ae9 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -54,14 +54,13 @@ jobs: - name: Build run: go build main.go - # Remove test for now - # - name: Run test & coverage - # run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./... - # env: - # ENV: development - # PORT: 5000 - # DATABASE_URL: postgres://postgres:password@postgres:5432/jokesbapak2 - # REDIS_URL: redis://@redis:6379 + - name: Run test & coverage + run: go test -v -coverprofile=coverage.out -covermode=atomic ./... + env: + ENV: development + PORT: 5000 + DATABASE_URL: postgres://postgres:password@postgres:5432/jokesbapak2 + REDIS_URL: redis://@redis:6379 - name: Initialize CodeQL uses: github/codeql-action/init@v1 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 91da995..36e9566 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -108,14 +108,13 @@ jobs: - name: Build run: go build main.go - # Remove test for now - # - name: Run test & coverage - # run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./... - # env: - # ENV: development - # PORT: 5000 - # DATABASE_URL: postgres://postgres:password@postgres:5432/jokesbapak2 - # REDIS_URL: redis://@redis:6379 + - name: Run test & coverage + run: go test -v -coverprofile=coverage.out -covermode=atomic ./... + env: + ENV: development + PORT: 5000 + DATABASE_URL: postgres://postgres:password@postgres:5432/jokesbapak2 + REDIS_URL: redis://@redis:6379 - name: Initialize CodeQL uses: github/codeql-action/init@v1