mirror of
https://github.com/gofiber/storage.git
synced 2025-12-24 13:29:30 +08:00
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
paths:
|
|
- 'postgres/**'
|
|
pull_request:
|
|
paths:
|
|
- 'postgres/**'
|
|
name: "Tests Postgres"
|
|
jobs:
|
|
Tests:
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
postgres:
|
|
image: 'postgres:latest'
|
|
ports:
|
|
- '5432:5432'
|
|
env:
|
|
POSTGRES_DB: fiber
|
|
POSTGRES_USER: username
|
|
POSTGRES_PASSWORD: "pass#w%rd"
|
|
options: >-
|
|
--health-cmd pg_isready --health-interval 10s --health-timeout 5s
|
|
--health-retries 5
|
|
strategy:
|
|
matrix:
|
|
go-version:
|
|
- 1.19.x
|
|
- 1.20.x
|
|
- 1.21.x
|
|
steps:
|
|
- name: Fetch Repository
|
|
uses: actions/checkout@v4
|
|
- name: Install Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '${{ matrix.go-version }}'
|
|
- name: Run Test
|
|
run: cd ./postgres && go test ./... -v -race
|
|
env:
|
|
POSTGRES_DATABASE: fiber
|
|
POSTGRES_USERNAME: username
|
|
POSTGRES_PASSWORD: "pass#w%rd"
|