{"id":13514965,"url":"https://github.com/ankane/setup-postgres","last_synced_at":"2025-11-17T14:02:52.694Z","repository":{"id":46220290,"uuid":"311851366","full_name":"ankane/setup-postgres","owner":"ankane","description":"The missing action for Postgres","archived":false,"fork":false,"pushed_at":"2025-11-14T19:20:41.000Z","size":73,"stargazers_count":52,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"v1","last_synced_at":"2025-11-14T21:21:59.289Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ankane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-11-11T03:22:23.000Z","updated_at":"2025-11-14T19:20:42.000Z","dependencies_parsed_at":"2024-12-23T22:08:15.563Z","dependency_job_id":"c8567569-f844-4a2d-86d8-3afb7852dd6c","html_url":"https://github.com/ankane/setup-postgres","commit_stats":{"total_commits":132,"total_committers":2,"mean_commits":66.0,"dds":"0.015151515151515138","last_synced_commit":"5cee36a4ea04be6f3c8ab818e500d585fa1d3dec"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ankane/setup-postgres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fsetup-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fsetup-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fsetup-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fsetup-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankane","download_url":"https://codeload.github.com/ankane/setup-postgres/tar.gz/refs/heads/v1","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fsetup-postgres/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284893575,"owners_count":27080531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-17T02:00:06.431Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T05:01:04.625Z","updated_at":"2025-11-17T14:02:52.689Z","avatar_url":"https://github.com/ankane.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# setup-postgres\n\nThe missing action for Postgres :tada:\n\n- Faster (with the default version) and simpler than containers\n- Works on Linux, Mac, and Windows\n- Supports different versions\n\n[![Build Status](https://github.com/ankane/setup-postgres/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/setup-postgres/actions)\n\n## Getting Started\n\nAdd it as a step to your workflow\n\n```yml\n      - uses: ankane/setup-postgres@v1\n```\n\nThe default credentials are:\n\n- user: `runner` (the OS user) on Linux and Mac, `postgres` on Windows\n- password: none\n- host: `localhost` or socket\n- port: `5432`\n\n## Versions\n\nSpecify a version\n\n```yml\n      - uses: ankane/setup-postgres@v1\n        with:\n          postgres-version: 18\n```\n\nCurrently supports\n\nVersion | `18` | `17` | `16` | `15` | `14` | `13`\n--- | --- | --- | --- | --- | --- | ---\n`ubuntu-24.04` | ✓ | ✓ | default | ✓ | ✓ | ✓\n`ubuntu-24.04-arm` | ✓ | ✓ | default | ✓ | ✓ | ✓\n`ubuntu-22.04` | ✓ | ✓ | ✓ | ✓ | default | ✓\n`ubuntu-22.04-arm` | ✓ | ✓ | ✓ | ✓ | default | ✓\n`macos-26` | ✓ | default | ✓ | ✓ | ✓ | ✓\n`macos-15` | ✓ | default | ✓ | ✓ | ✓ | ✓\n`macos-15-intel` | ✓ | default | ✓ | ✓ | ✓ | ✓\n`macos-14` | ✓ | default | ✓ | ✓ | ✓ | ✓\n`macos-13` | | default | ✓ | ✓ | ✓ | ✓\n`windows-2025` | | default | | | | |\n`windows-2022` | | | | | default | |\n\nTest against multiple versions\n\n```yml\n    strategy:\n      matrix:\n        postgres-version: [18, 17, 16, 15, 14]\n    steps:\n      - uses: ankane/setup-postgres@v1\n        with:\n          postgres-version: ${{ matrix.postgres-version }}\n```\n\n## Options\n\nCreate a database\n\n```yml\n      - uses: ankane/setup-postgres@v1\n        with:\n          database: testdb\n```\n\nSpecify a user\n\n```yml\n      - uses: ankane/setup-postgres@v1\n        with:\n          user: testuser\n```\n\nSet `postgresql.conf` config\n\n```yml\n      - uses: ankane/setup-postgres@v1\n        with:\n          config: |\n            shared_preload_libraries = 'pg_stat_statements'\n```\n\nInstall development files (for building extensions)\n\n```yml\n      - uses: ankane/setup-postgres@v1\n        with:\n          dev-files: true\n```\n\n## Extra Steps\n\nRun queries\n\n```yml\n      - run: psql -d testdb -c 'SHOW server_version'\n```\n\n## Related Actions\n\n- [setup-mysql](https://github.com/ankane/setup-mysql)\n- [setup-mariadb](https://github.com/ankane/setup-mariadb)\n- [setup-mongodb](https://github.com/ankane/setup-mongodb)\n- [setup-elasticsearch](https://github.com/ankane/setup-elasticsearch)\n- [setup-opensearch](https://github.com/ankane/setup-opensearch)\n- [setup-sqlserver](https://github.com/ankane/setup-sqlserver)\n\n## Contributing\n\nEveryone is encouraged to help improve this project. Here are a few ways you can help:\n\n- [Report bugs](https://github.com/ankane/setup-postgres/issues)\n- Fix bugs and [submit pull requests](https://github.com/ankane/setup-postgres/pulls)\n- Write, clarify, or fix documentation\n- Suggest or add new features\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankane%2Fsetup-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankane%2Fsetup-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankane%2Fsetup-postgres/lists"}