Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PostgreSQL service containers #118

Open
jeliasson opened this issue Mar 25, 2022 · 2 comments
Open

Use PostgreSQL service containers #118

jeliasson opened this issue Mar 25, 2022 · 2 comments

Comments

@jeliasson
Copy link
Contributor

jeliasson commented Mar 25, 2022

I suggest using PostgreSQL service containers if possible.

- name: Set up Postgres
uses: CasperWA/postgresql-action@v1
with:
postgresql version: '14'
postgresql db: 'test'
postgresql user: test
postgresql password: password

@jeliasson jeliasson changed the title Use postgres with Github Action services Use PostgreSQL service containers Mar 25, 2022
@thedavidprice
Copy link
Contributor

Nice! I'll add this to the Action I'm building for CI over here:

I'd like this to be something we eventually publish to the GitHub Marketplace as "Redwood CI". It's almost there — just need to make each step optional and figure out if I need to add SQLite support (probably not).

@jtoar I've been meaning to have you look at this. When I try to use this action in my workflow here (https://github.com/redwoodjs/deploy-target-ci/tree/main/.github/workflows) I get syntax errors and run into a problem related to using a "local action in workflow". By chance, do you know how to resolve this so I can use this action instead of copy/paste the steps for each Job in my workflow?

@virtuoushub
Copy link

fwiw I got this working over at: https://github.com/redwoodjs/example-storybook/blob/main/.github/workflows/node.js.yml#L17-L36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants