Skip to content

chore: bump golang.org/x/time from 0.14.0 to 0.15.0 #6562

chore: bump golang.org/x/time from 0.14.0 to 0.15.0

chore: bump golang.org/x/time from 0.14.0 to 0.15.0 #6562

Workflow file for this run

name: Build and test back-end repo
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test_migration_ordering:
name: Test migration ordering
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
checks: write
services:
postgres:
image: postgis/postgis:17-3.6-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: marble_test
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 2s
--health-timeout 2s
--health-retries 10
--tmpfs /var/lib/postgresql/data
ports:
- 5432:5432
steps:
- name: Checkout main branch
uses: actions/checkout@v5
with:
ref: main
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: ./go.mod
cache: true
cache-dependency-path: go.mod
- name: Cache Go tools only
uses: actions/cache@v4
with:
path: ~/go/bin
key: ${{ runner.os }}-go-bin-${{ hashFiles('**/go.mod') }}
- name: Install goose
run: |
if ! command -v goose &> /dev/null; then
go install github.com/pressly/goose/v3/cmd/goose@latest
fi
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
- name: Run migrations on main branch
env:
GOOSE_DRIVER: postgres
GOOSE_DBSTRING: host=localhost port=5432 user=postgres password=postgres dbname=marble_test sslmode=disable
run: goose -dir repositories/migrations up
- name: Checkout PR branch
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run migrations on PR branch
env:
GOOSE_DRIVER: postgres
GOOSE_DBSTRING: host=localhost port=5432 user=postgres password=postgres dbname=marble_test sslmode=disable
run: |
echo "Running migrations on PR branch..."
# Remove the compacted baseline migration - it's only for fresh installs,
# not for testing migration ordering against main branch
rm -f repositories/migrations/20241231000000_baseline_compacted.sql
goose -dir repositories/migrations up || {
echo "❌ Migration failed! This indicates migration ordering issues."
echo "Check if your new migrations can run after main branch migrations."
exit 1
}
test_backend:
permissions:
contents: read
pull-requests: read
checks: write
uses: ./.github/workflows/backend_test_workflow.yaml