name: "postgres_flat Filer Store Tests" on: push: branches: [ master ] paths: - 'weed/filer/**' - 'weed/server/**' - 'weed/s3api/**' - 'weed/mount/**' - 'weed/command/**' - 'weed/util/**' - 'test/postgres_flat/**' - 'test/testutil/**' - 'test/volume_server/framework/**' - 'go.mod' - 'go.sum' - '.github/workflows/postgres-flat-tests.yml' pull_request: paths: - 'weed/filer/**' - 'weed/server/**' - 'weed/s3api/**' - 'weed/mount/**' - 'weed/command/**' - 'weed/util/**' - 'test/postgres_flat/**' - 'test/testutil/**' - 'test/volume_server/framework/**' - 'go.mod' - 'go.sum' - '.github/workflows/postgres-flat-tests.yml' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} permissions: contents: read jobs: postgres-flat: name: S3 and POSIX over postgres_flat runs-on: ubuntu-24.04 timeout-minutes: 30 services: postgres: image: postgres:17 env: POSTGRES_PASSWORD: postgres ports: - 5432:5432 options: >- --health-cmd pg_isready --health-interval 5s --health-timeout 5s --health-retries 20 steps: - name: Checkout code uses: actions/checkout@v7 - name: Set up Go uses: actions/setup-go@v7 with: go-version-file: 'go.mod' cache: ${{ runner.environment == 'github-hosted' }} - name: Repair the fusermount3 setuid bit uses: ./.github/actions/fix-fusermount-setuid - name: Build SeaweedFS run: go build -o weed/weed -buildvcs=false ./weed - name: Run tests env: RUN_POSTGRES_TESTS: "1" WEED_BINARY: ${{ github.workspace }}/weed/weed run: go test -v -count=1 -timeout=20m ./test/postgres_flat/