Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
realhugn committed Sep 18, 2024
1 parent f982fff commit 0ce8407
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:

services:
postgres:
image: postgres:13
image: postgres:15
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: test
POSTGRES_PASSWORD: 123
POSTGRES_DB: tinyurl_test
ports:
- 5432:5432
Expand All @@ -35,11 +36,11 @@ jobs:
go-version: '1.20'

- name: Install dependencies
working-directory: ./tinyURL
run: go mod download

- name: Run integration tests
env:
TEST_DB_URL: postgres://postgres:postgres@localhost:5432/tinyurl_test?sslmode=disable
working-directory: ./tinyURL
run: go test ./test/ -v

lint:
Expand All @@ -48,7 +49,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Go
- name: Set up Gos
uses: actions/setup-go@v4
with:
go-version: '1.20'
Expand All @@ -57,6 +58,7 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: ./tinyURL

build:
name: Build
Expand All @@ -71,4 +73,5 @@ jobs:
go-version: '1.20'

- name: Build
working-directory: ./tinyURL
run: go build -v ./...

0 comments on commit 0ce8407

Please sign in to comment.