ci: update github actions

This commit is contained in:
Reinaldy Rafli 2021-11-08 22:40:17 +07:00
parent 05120c23ab
commit 955313b45e
No known key found for this signature in database
GPG Key ID: CFDB9400255D8CB6
2 changed files with 14 additions and 16 deletions

View File

@ -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

View File

@ -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