Skip to content

[Snyk] Security upgrade postgres from 11-alpine to 13.14-alpine #26

[Snyk] Security upgrade postgres from 11-alpine to 13.14-alpine

[Snyk] Security upgrade postgres from 11-alpine to 13.14-alpine #26

Workflow file for this run

name: main
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
PORT: ${{ secrets.PORT }}
GIN_MODE: ${{ secrets.GIN_MODE }}
JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }}
JWT_SECRET_REFRESH_KEY: ${{ secrets.JWT_SECRET_REFRESH_KEY }}
LOG_LEVEL: ${{ secrets.LOG_LEVEL }}
LOG_OUTPUT: ${{ secrets.LOG_OUTPUT }}
AUTHORIZATION_URL: ${{ secrets.AUTHORIZATION_URL }}
POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }}
POSTGRES_PORT: ${{ secrets.POSTGRES_PORT }}
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./internal/...
test:
needs: build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Docker Compose
run: docker-compose -f docker-compose.ci.yml up -d --build
- name: Run project
run: make ci
- name: Set up Go for E2E tests
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Run E2E tests
run: go test -v ./e2e/...
- if: failure()
run: docker-compose -f docker-compose.ci.yml ps
- if: failure()
run: docker-compose -f docker-compose.ci.yml logs
- name: Tear Down
if: always()
run: docker-compose -f docker-compose.ci.yml down