Skip to content

[chore] : bump golang.org/x/crypto from 0.31.0 to 0.45.0 in /tests/postgres in the go-security group across 1 directory #195

[chore] : bump golang.org/x/crypto from 0.31.0 to 0.45.0 in /tests/postgres in the go-security group across 1 directory

[chore] : bump golang.org/x/crypto from 0.31.0 to 0.45.0 in /tests/postgres in the go-security group across 1 directory #195

Workflow file for this run

name: Go
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
postgres:
strategy:
matrix:
dbversion: ["postgres:latest"]
go: ["1.25", "1.24"]
platform: [ubuntu-latest] # can not run in macOS and Windows
runs-on: ${{ matrix.platform }}
services:
postgres:
image: ${{ matrix.dbversion }}
env:
POSTGRES_PASSWORD: go_db
POSTGRES_USER: go_db
POSTGRES_DB: go_db
ports:
- 9920:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Set up Go 1.x
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: ${{ matrix.go }}
- name: Check out code into the Go module directory
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: go mod package cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('tests/go.mod') }}
- name: Tests
run: make test-postgres